Jump to content
  • Advertisement
Sign in to follow this  
billyjack2

using image in exe(dev cpp)

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

This may need to be in the beginners section.. ha I am currently on a deployment so it has been a while since I have done any coding. I have an image I am trying to use(bmp). I am 99% sure I successfully added it to the executable in dev cpp considering the file size. However, what is it I need to do to use this file in place of a normal string that would be used to access an image placed outside the executable? I hope that makes sense. Thank you for your help.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by billyjack2
This may need to be in the beginners section.. ha
I am currently on a deployment so it has been a while since I have done any coding.
I have an image I am trying to use(bmp). I am 99% sure I successfully added it to the executable in dev cpp considering the file size. However, what is it I need to do to use this file in place of a normal string that would be used to access an image placed outside the executable?
I hope that makes sense. Thank you for your help.


How did you add it to the executable? As a Windows resource? You probably want to use LoadBitmap(), then.

You could also try a completely different approach.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!