How can I convert 'System :: String ^' to 'const char *' in vC ++?
My code is:
String ^Result1= "C:/Users/Dev/Desktop/imag.jpg";
IplImage *img1 = cvLoadImage(Result1, 1);
if I do this above, it will generate the following error.
error C2664: 'cvLoadImage' : cannot convert parameter 1 from 'System::String ^' to 'const char *'
Please help me.
source share