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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -