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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment