Re: System::String to wstring

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Tamas Demjen" <tdemjen@xxxxxxxxx> wrote in message
news:OBQ$Wv1PHHA.4372@xxxxxxxxxxxxxxxxxxxxxxx
Tao wrote:

quick question: how to convert a managed data type system::string to
unmanaged wstring?

http://tinyurl.com/3cz8zl

There's no need to mess with HGLOBALs.

Try: http://msdn2.microsoft.com/en-us/library/d1ae6tz5(VS.80).aspx


.