Jump to content
  • Advertisement
Sign in to follow this  
Yratelev

Adding Resources to exes in c#

This topic is 4924 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 remember being able to add resources (such as bitmaps and files) to exes in VS 6, but I have no idea how its being done, or if its possible in VS2003.net. Im sure its something really simple and im just being plain stupid. Someone point it out! thanks Yratelev

Share this post


Link to post
Share on other sites
Advertisement
If you're using a .NET language, as far as I can tell, you add the resource to your project, and in the file properties (right-click on the file in Solution Explorer, click Properties), select Embedded Resource for compilation type. Then you can use Assembly.GetManifestResourceStream to get a Stream to the resource. VS 2005 adds a lot more comprehensive resource support that's similar to what exists in VC++.

If you're using VC++, I believe you simply add a resource file to your project (.rc), then you can use the Resource View to add resources like in VS 6.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!