PDA

View Full Version : Problem casting variable.



XaBerr
10-06-2013, 08:48 AM
Hello everyone,
thanks in advance for the answers.
Use Visual Express 2013 on W7.
Libraries: DevIL, OpenGL.
This is the line of code that gives me the problem: ILboolean success = ilLoadImage (path.c_str ());
The error is: can not convert argument 1 from 'const char *' to 'const wchar_t *'

PS: Sorry for my english.

Dark Photon
10-06-2013, 09:25 AM
This isn't an OpenGL question. Websearch "casting from char to wchar".

XaBerr
10-06-2013, 09:53 AM
This isn't an OpenGL question. Websearch "casting from char to wchar".
Normally seen that opengl can not upload images using support libraries as a devil, but it is not strictly a natural consequence of opengl!
In google I found that my solution is correct ... but it seems to work anyway.