【发布时间】:2015-03-29 22:02:43
【问题描述】:
如何将'String^'转换为'const char*'?
String^ cr = ("netsh wlan set hostednetwork mode=allow ssid=" + this->txtSSID->Text + " key=" + this->txtPASS->Text);
system(cr);
错误:
1 IntelliSense: argument of type "System::String ^" is incompatible with parameter of type "const char *"
【问题讨论】:
-
将您的问题标题复制/粘贴到 Google 搜索框中。很多很多的热门歌曲。
-
好的,这个答案很好,很多人都用它作为欺骗目标。
标签: c++-cli