I’m curently working on a software in C++ using MFC with VS2012.
There is a lot of pictures in it. All the pictures are located in a folder “pictures” and the programme loads them when it is launch.
So the problem is when I want to create a release of it I have to include the folder “pictures” with it which is ridiculous. The programme is a bit professional and giving a folder with all the pictures in it is not pro.
So I’d like to load all the pictures in ressources of my programme. Then all the pictures will be in the Exe file.
Also I need to change the loading of a picture (I mean using several pictures for a single slot in a window)
You need to add the images as resources, and then you can load them:
will load an image from a BITMAP resource.
If your images are not BITMAPs, it would be easier to create them as such. Otherwise, you can see this Code Project page for loading JPG and PNG.