Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

rhadier

Loading from resource in Visual studio

This topic is 6696 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

Hi I have done a program that loads some bmp files. Now I would like to add these files to the exe file. I understand that I need to use a resource file or something, well I tried and failed So if someone could tell me how to solve the problem I would be very happy

Share this post


Link to post
Share on other sites
Advertisement
You can do this easily with resource files but only if you''re using MFC. Go to Insert/Resource and choose bitmap.

Visit our homepage: www.rarebyte.de.st

GA

Share this post


Link to post
Share on other sites
it can still be done easily even w/o mfc. it''s a similar process. then you can just use LoadImage to load the bitmap resource just as you would from a file, just omit the LR_LOADFROMFILE flag.


crazy166
some people think i'm crazy, some people know it

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!