Original Post
I am trying to pass a pointer to a char* to an unmanaged c++ dll function. The function allocates a string (ASCII) and sets the parameter to point to it. It is the callers responsibility to free that string. How do I do this in c#? bool myFunc( char** myNewString ) { *myNewString = new char[32]; return true; }