Sign in to follow this  
jagguy

resources

Recommended Posts

jagguy    100
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
unknownProdigy    160
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this