-
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
-
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
-
Forum Rules