E
Elp
[Follow-up to microsoft.public.dotnet.langage.vc]
Hi,
I'm developping a small Managed C++ Dll intented to be called from my C#
program. The C++ function should take a reference to a string in parameter
in ordrer to write to this string if an error occurs. That way the calling
program can have info about the error.
If i had to do that in c#, i would have declared my function in this way:
bool myFunction(out string errorMessage) {}
and called it this way:
string error = null;
bool res = myFunction(out error);
How can i do to have the same behaviour if myFunction is in managed C++ but
called from C#?
thanks
Hi,
I'm developping a small Managed C++ Dll intented to be called from my C#
program. The C++ function should take a reference to a string in parameter
in ordrer to write to this string if an error occurs. That way the calling
program can have info about the error.
If i had to do that in c#, i would have declared my function in this way:
bool myFunction(out string errorMessage) {}
and called it this way:
string error = null;
bool res = myFunction(out error);
How can i do to have the same behaviour if myFunction is in managed C++ but
called from C#?
thanks