Why on earth does dbLoadObject not take const char*...
Maybe I'm looking past something but dbLoadObject doesn't take const char* as a parameter, only char*. And whenever I try to do so, it can't cast (for good reason).
This is easily solved if I type in dbLoadObject("Someobject.obj",1) or something, but if I do this
dbLoadObject(ini::getLine( "build" , "mesh" ).c_str())
Then I get an obvious cast error of
1>GameEngine\DataTypes\Object.cpp(90): error C2665: 'dbLoadObject' : none of the 2 overloads could convert all the argument types
1> c:\libraries\darkgdk\include\DarkSDKBasic3D.h(11): could be 'void dbLoadObject(char *,int)'
1> while trying to match the argument list '(const char *, int)'
How would I get about this?
char* ptr_ = &(OBJECT_FILE_LOCATION_MESH +
ini::getLine( "build" , "mesh" )).c_str();
But that's not allowed. :\
Ventures of the worlds around us are limited only by our imagination.