我该如何将 'System::String ^' 转换为 'const char *' 在vc++中?
我的代码:
String ^Result1= "C:/Users/Dev/Desktop/imag.jpg";
IplImage *img1 = cvLoadImage(Result1, 1);
如果我像上面这样做,就会生成以下错误。
error C2664: 'cvLoadImage' : cannot convert parameter 1 from 'System::String ^' to 'const char *'
请帮帮我。