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