Sign in to follow this  

embedding resources into the exe

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

Useing visual studio2008 how can I put resources (eg images) into the exe and then use them like I can normal files (eg use them as an icon, mouse curser or use them as a Direct3D9 texture? I know you can do this somehow but I havn't been able to find any good documentation on how I do it...

Share this post


Link to post
Share on other sites
Well basicaly .. VC++ 2008 Express edition does not come with a resource editor so you have to write the resource files manualy it still compiles witht he resources but it just does not make any the files for you.

I myself do not remmber how to do a resource file as it just bulks up the exe if its large and i just do not overly see the point.

But if someone has a Old version of VC++ and can just post a quick Resource header file and the resouce file itself it will probaly help you out greatly.

Regards Jouei.

Share this post


Link to post
Share on other sites
I'm actualy using the 90day trail right now so I probebly do have the resource editor but ive got no idea how to use it...I can add bitmaps and stuff as items but I don't know how to make it compile these into the exe and then access them :(

Share this post


Link to post
Share on other sites
Well if you can add the items to the resource then it compiles with them but they are loaded in differntly then normaly bitmaps as you use there reource id.

like LoadBitmap() function i belive take the resource id as a paramater.

if you google on loading bitmaps from a reousrce file you might find out how to load it in but when the reource file is in your project it should compile with your exe. But your only on a 90 Day trail so im not going to gaurentee it.

Regards jouei.

Share this post


Link to post
Share on other sites

This topic is 3589 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.

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