System::String^ to char*
Reference: http://forums.codeguru.com/showthread.php?372298-MC-amp-C-CLI-String-How-to-convert-System-String-to-char*
Example Code.
using namespace System::Runtime::InteropServices;
char* cFileName = (char*)(void*)Marshal::StringToHGlobalAnsi(textBox1->Text);
沒有留言:
張貼留言