G
Guest
I have a C# dll with a COM interface that is successfully call by a C++
client. One of the parameters is a string, the method looks like
void Goofy(string strUserInput,[Out, MarshalAs(UnmanagedType.LPWStr)] out
string strOutput);
I make an assignment in the C# COM object to strOutput like
strOutput = some system.string
but the string is never returned to the C++ client, it always returns "". I
tried setting strOutput to a stack value like strOutput = "Ge"; and the
string is returned to my C++ client just fine. There seems to be some magic I
am missing???
client. One of the parameters is a string, the method looks like
void Goofy(string strUserInput,[Out, MarshalAs(UnmanagedType.LPWStr)] out
string strOutput);
I make an assignment in the C# COM object to strOutput like
strOutput = some system.string
but the string is never returned to the C++ client, it always returns "". I
tried setting strOutput to a stack value like strOutput = "Ge"; and the
string is returned to my C++ client just fine. There seems to be some magic I
am missing???