witam, mam problem z przekonwertowaniem Stringa na chara
if (openFileDialog->ShowDialog(this) == Windows::Forms::DialogResult::OK)
{
String ^cos;
cos = openFileDialog->FileName;
char *nazwa =(char*) cos;
//img3=cvLoadImage("",CV_LOAD_IMAGE_GRAYSCALE);
img3=cvLoadImage(nazwa,1);
pictureBox1->Image=(gcnew System::Drawing::Bitmap(img3->width,img3->height,img3->widthStep,System::Drawing::Imaging::PixelFormat::Format24bppRgb,(System::IntPtr)img3->imageData));
detectFaces(img3);
}
kompilator mowi ze nie moge przekonwerowac ^Stringa na *char