Page 1 of 1

Load images and sounds from resources

Posted: June 4th, 2012, 11:37 pm
by Asimov
Hi Chilli,

Just been wondering something. I know it is possible to add images and sounds to visual c++ via resource files. These files are then compiled with the exe.

For a start I haven't worked out how to add images or sounds to resource files yet.

However if I could add them, is it easy to load these into the program? Similar to the LoadBMP class, or even simpler I hope.

Asimov

Re: Load images and sounds from resources

Posted: June 6th, 2012, 5:23 am
by chili
Yup, you can. They would be easy to load, but the code would be a little different than LoadBMP because you would not be using stdio.