Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

convert string^ to char* windows form application c++

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 *.

convert string^ to char* windows form application c++

i m reading path from textbox and then try tried to open image

String^ P = path->Text;

IplImage* img = cvLoadImage(P);

It gives me the 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 *.

convert string^ to char* windows form application c++

i m reading path from textbox and then tried to open image

String^ P = path->Text;

IplImage* img = cvLoadImage(P);

It gives me the 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 *.