To convert String* to char*, use the following:
using namespace System::Runtime::InteropServices;
char* temp;
temp = (char*)(void*)Marshal::StringToHGlobalAnsi(txtBx_MgmtName->Text);
To convert char* to String*, just use the constructor of System::String.
BTW, most data types in .NET has the ToString method.
Showing posts with label Convert. Show all posts
Showing posts with label Convert. Show all posts
Tuesday, June 12, 2007
Subscribe to:
Comments (Atom)