I have developed a form where i need to select an image from file explorer.
But, when i select an image using,

Code:
objOpenFileDialog->ShowDialog();
System::String^ imgName = objFileDialog->FileName;
it returns address in "String^" form.
Problem is that, i need in "String" to make some string operations like,

Code:
string path = imgName;
or
Code:
Mat img = imread(imgName, CV_LOAD_IMAGE_GRAYSCALE);
trim image full path to image name only etc...

How can i get path of an image in String format ???