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 2 of 2

Thread: problem with glut concerning resources

  1. #1
    Intern Newbie
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    35

    problem with glut concerning resources

    I am using glut and want to combine some data with the exe file. Normally (that means with Win Api) i would use something like 1. hres = LoadResource(hInstance,...
    2.pData = LockResource(hres);
    Of course the problem is that i dont know how to get the hInstance - handle...but many win api functions need this handle. Is it possible to connect WinMain with GLUT or is there another method to access resources ?
    Maybe there is a function that returns me this handle ??

    Greetings,Martin

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Austin TX
    Posts
    1

    Re: problem with glut concerning resources

    try

    HINSTANCE instance = (HINSTANCE) GetModuleHandle (NULL);

Posting Permissions

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