I am currently writing a C++ program that uses a external library and engine that is primarily based in C. I am attempting to load an image file and the function requires that the argument be passed as a char *szFileName.
I have the file address as a string and my attempt to convert is as follows:
std::string path("C:\\Doc.....")
then char *FileExt = path.c_str();
I continually get the error message saying that it is not possible to convert const char * to char *!
Any1 any ideas? Any help would be much appreciated!
oh and by the way ive tried casting it using static_cast