Skip to main content
GameDev.net gamedev.net
🔒 Locked

Loading from resource in Visual studio

Started by rhadier Apr 12, 2000 at 4:07 PM 2 replies 500+ views
Original Post
rhadier
rhadier
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
ZoomBoy
ZoomBoy


Edited by - ZoomBoy on 4/13/00 12:12:51 AM
ga
ga
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
Visit our homepage: www.rarebyte.de.stGA
crazy166
crazy166
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.