【发布时间】:2010-08-06 13:01:55
【问题描述】:
可能重复:
What is the best way to convert between char* and System::String in C++/CLI
你好, 我在使用 \clr 的 c++ 项目中有一个函数,例如:
int WINAPI dmtTest(char *pcertificate)
{
String^ sCertificate;
sCertificate = pcertificate; // how can I assign pcertificate to sCertificate?
....
}
【问题讨论】: