I have a String^1 and I need to convert it to const char* and c_str() does not work as it is not a member of System::String. Is there a simpler way to do this other than this method? I am only doing this once and it is from an openFileDialog->Filename, so the input will not be anything complex. I am using Visual Studio 2008.
Thanks
I have a String^ 1 and I need to convert it to const char*
Share
I think this page may help you.
Hope that helps