Sign in to follow this  
billyjack2

using image in exe(dev cpp)

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

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