resource

Just DL'd Win32windowsAPI, playing with it a little bit but having trouble understanding how to get an image into my project.
Do I need to save (lets say a shoddily done microsoft paint image) it as an .rc file? Then what?
You can load bitmaps with LoadImage:
http://msdn.microsoft.com/en-us/library/ms648045%28v=vs.85%29.aspx
Actually drawing it is done with BitBlt
http://msdn.microsoft.com/en-us/library/dd183370%28v=vs.85%29.aspx

If you want to use other file formats than the ones that are supported by default you will either have to rely on third party libraries or write some file loaders yourself.

Having a resource file is strictly speaking not necessary, but if you're working with win32 you should at least look into them.
Last edited on
I'm stepping ahead of myself in my programming I'm pretty sure, as I probably should be working with MFC or something along those lines, but I'd rather use windows API just because I like figuring things out.

"Having a resource file is strictly speaking not necessary"
What other paths would you suggest to work with graphics and images in programs?
Allegro, wxWidgets, SFML...

In general, working with GUI's isn't that hard, but some of the concepts may very well be hard to comprehend to beginners. Though there are a few people who disagree with this, I personally still recommend to get a good grasp on standard C++ before you start using all that third party stuff that is ultimately necessary to build GUI applications.
Topic archived. No new replies allowed.