• Advertisement
Sign in to follow this  

resources

This topic is 4722 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

in vc++ i want to be able to read in a tiled bitmap . do I need to convert the desired .bmp into a resource. ps I dont have a clue about resources but I have an example of a program reading in a sprite from a .bmp and it uses a resource insted of the exact file name

Share this post


Link to post
Share on other sites
Advertisement
Here is a function that loads a bitmap without making the bmp as a resource. Just give the file name.

HBITMAP LoadABitmap(LPSTR szFileName)
{
// Load the bitmap and return the handle to the bitmap we just loaded
return (HBITMAP)LoadImage(NULL, szFileName, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
}

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement