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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -