7
可能重複:
What is the best way to convert between char* and System::String in C++/CLI如何的char *轉換成一個系統:字符串^
你好, 我使用\ CLR像有一個函數在C++項目:
int WINAPI dmtTest(char *pcertificate)
{
String^ sCertificate;
sCertificate = pcertificate; // how can I assign pcertificate to sCertificate?
....
}
這工作...試圖找到相反的方向(字符串到字符*)... – 2016-04-28 15:26:10