Amit Jagesha シ Amit Jagesha シ - 1 year ago 101
C++ Question

How can i call below C++ function with size_t* in Objective c ios

I want to call this function void getResult(char, size_t*) in objective c.How can i do this please help me.
It give me below error show in image.

enter image description here

Answer Source

It seems your getResult function expects to get second parameter by reference. You can't pass function result by reference. Assign it to actual variable first and then pass reference to that.

unsigned long sizeOfC = sizeof(c);
c->getResult(array1, &sizeOfC);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download