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