embedding resource files into an .exe

Started by
1 comment, last by riruilo 14 years, 8 months ago
Well, I made this little program that loads and displays picture (.bmp) in fullscreen. It works fine if the .bmp file is on the computer, but it fails if not. I was wondering if there's someway to include/fuse the picture into the .exe during compilation. This way, it will work whether the computer has the picture or not. I know that this is inefficient in large programs, but mine only loads one picture. So, it doesn't make a difference. Anyways, anyone got a simple way to do this? Thanks
Advertisement
Just add it as a resource using the MSVC resource editor.
You can also use some tools like molebox, which even protect (encrypt) your resources.
I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in rain. Time to die.

This topic is closed to new replies.

Advertisement