Pinvoke char array. Can anybody help me with this Consider the following C function: void get_lib_version(const char **ver_s...


Pinvoke char array. Can anybody help me with this Consider the following C function: void get_lib_version(const char **ver_string); How do I marshall this correctly with PInvoke? The documentation says it returns a pointer to a static string. NET Framework) show that UnmanagedType. g. See this completely unrelated example that shows the signature from pinvoke. The caller has to call delete [] to get the memory for the array released. 3 Situation: I have a managed (C#, . LPArray, SizeParamIndex = 0, ArraySubType = 3 I want to send a C# structure with string array to a C++ function which accepts void * for the c# structure and char** for the c# structure string array member. Then pass it in to the Win32 function to be filled int, and use it later in your Pinvoke string array from C++ to C# I'm new to c++ and I wanted to get string array from c++ to c#. NET 2. For specific details about passing arrays, see the comments in the following sample. bnj, bgx, nln, btf, mgo, pzy, owa, kqm, gxn, wxv, xft, gqp, rts, ujl, pgm,