🎉 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...
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?
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
random-nomad
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
Popular Topics
Advertisement