using namespace System::Runtime::InteropServices;
//fileAdress : system.string^
char* str2 = (char*)(void*)Marshal::StringToHGlobalAnsi(fileAdress);
Marshal::FreeHGlobal((System::IntPtr)str2);
using namespace System::Runtime::InteropServices;
//fileAdress : system.string^
char* str2 = (char*)(void*)Marshal::StringToHGlobalAnsi(fileAdress);
Marshal::FreeHGlobal((System::IntPtr)str2);