wcstombs_s 中文 42 错误

using namespace System::Runtime::InteropServices;

//fileAdress : system.string^

char* str2 = (char*)(void*)Marshal::StringToHGlobalAnsi(fileAdress);

  Marshal::FreeHGlobal((System::IntPtr)str2);

posted @ 2009-05-19 13:18  南守拥  阅读(896)  评论(0编辑  收藏  举报