🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Handles Handles Handles...

Started by
0 comments, last by Uthman 24 years, 2 months ago
Does anyone know how to get the handle of a bitmap? For example, I have the picture "pic.bmp" on my desktop- how do i make/get a handle for it?
"a low level aho master like you couldn't kill me even if I let you"
Advertisement
It should be like any file i/o. Just make a pointer to a file, for instance:

FILE *bitMapHandle;

then just use fopen() like this:

bitMapHandle = fopen("pic.bmp", "r");

remember to check to make sure it doesn''t return NULL (in which case it couldn''t find the file). Happy coding


while( strcmp(reply,flame) )    followThread();


random-nomad

This topic is closed to new replies.

Advertisement