PDA

View Full Version : problem with glut concerning resources



Tresher
08-07-2002, 05:51 AM
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

mrx
08-07-2002, 05:04 PM
try

HINSTANCE instance = (HINSTANCE) GetModuleHandle (NULL);