visual c++ - How to change string of ^ type to char* type in vc++ CLR window application? -
I am working on a vc ++ CLR window application. In this application when I browse the local file system for file selection, the input file path is coming in string ^ Type ... now I have to change the char * type to type this ^ I help me. Thank you
You probably want Marshall :: StringToHGlobalAnsi
IntPtr P = Marshall :: Stringshotoglobellense (Managed String); Four * C = (four *) p.ToPointer (); ... Marshall :: FreeHejlobal (P);
See more.
Comments
Post a Comment