I need to call a function in a C++ dll from a C# program.
I can pass a string for an input parameter, but how do I get the
returned string?
The original C++ function : TransformString(char*)
sb = new StringBuilder("hello");
MyDll.TransformString(sb); /*supposed to transform "hello" into
"bye"*/
Console.WriteLine("{0}", sb.Tostring()); // always "hello" ...
Perhaps StringBuilders are not the solution ... :idea:
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com