I was having an error, the ilLoadImage function wont take a const char*, only a char*, so i fixed it like this. Is there another way to do it? I removed all the other stuff from the funtion so you can read it easily.
Code:unsigned int cRenderEngine::LoadTexture(string path, short size) { --code-- char * temp = new char[path.length()]; for(int i = 0; i < path.length(); i++) temp[i] = path[i]; ilLoadImage(temp); --code-- }