Come posso convertire un 'System :: String ^' in 'const char *' in vC++?Convertire un 'System :: String ^' in 'const char *' in vC++
Il mio codice:
String ^Result1= "C:/Users/Dev/Desktop/imag.jpg";
IplImage *img1 = cvLoadImage(Result1, 1);
se mi piace di sopra di essa genererà seguente errore.
error C2664: 'cvLoadImage' : cannot convert parameter 1 from 'System::String ^' to 'const char *'
Please help me.
possibile duplicato di [Come faccio a convertire uno System :: String^a const char *?] (Http://stackoverflow.com/questions/1098431/how-do-i-convert-a-systemstring -to-const-char) – shf301
possibile duplicato di [come convertire System :: String in const char \ *?] (http://stackoverflow.com/questions/29335426/how-to-convert-systemstring-to-const -char) –