i m reading path from textbox and then try to open image
String^ P = path->Text;
IplImage* img = cvLoadImage(P);
It gives me following error Error 1 error C2664: 'cvLoadImage' : cannot convert parameter 1 from 'System::String ^' to 'const char *'
Can anyone tell me how to convert it to char *.