I have a dll that is compiled with win32 and clr functions. I have a function that passes the following
char variable, const char* varible1, const char* var3
I want to convert all of these to System:string. I am able to convert the const Char* without trouble but when I convert the char I get the numeric value instead of the character. (example the variable is the drive letter - after converstion I get 101 in my string instead of 'e'.)
I am using this to convert the const Char*
System::String ^ oId = Marshal::PtrToStringAnsi((
IntPtr) (char *) var);
Start Free Trial