using namespace System::Runtime::InteropServices;
//fileAdress : system.string^
char* str2 = (char*)(void*)Marshal::StringToHGlobalAnsi(fileAdress);
Marshal::FreeHGlobal((System::IntPtr)str2);
转载于:https://www.cnblogs.com/nanshouyong326/archive/2009/05/19/1460107.html
相关资源:数据结构—成绩单生成器