Click to See Complete Forum and Search --> : Conversion from managed types to unmanaged


reptile
November 22nd, 2003, 02:46 AM
Is it possible to convert String type to unmanaged char array (or string placed in char pointer). It is because I want to use old WINAPI and C function such as system.

In system I have to use char* type. And now I want to convert String to a char*. How can I do that?

Thanx a lot for your attention.

vicodin451
November 22nd, 2003, 11:47 AM
http://support.microsoft.com/?kbid=311259
HOW TO: Convert from System::String* to Char* in Visual C++ .NET

vicodin451
November 22nd, 2003, 11:50 AM
This may help too:
http://www.codeguru.com/forum/showthread.php?threadid=271523