Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Problem casting variable.

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2013
    Posts
    6

    Exclamation Problem casting variable.

    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.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,126
    This isn't an OpenGL question. Websearch "casting from char to wchar".

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2013
    Posts
    6
    Quote Originally Posted by Dark Photon View Post
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •