Click here to Skip to main content
15,887,428 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
So I have a program that I added 4 JPEGs to the resource files.

I have 1 pictureBox.

I have 4 Buttons.


I need to know how to make each button change the picture displayed via using the JPEGs store in the resource files, not using pictures stored locally, can it be done?

Visual Studio 2008 C++
Posted
Updated 21-May-10 21:55pm
v2

1 solution

Sure - just read the images from your resources. If you search google for storing images in resources, you'll be fine. Of course, you should do what you didn't do for us, specify if you're using MFC, or C++/CLI, given that C++ itself has zero support for anything you;re doing.
 
Share this answer
 
Comments
Gregory Bryant 21-May-10 23:15pm    
ah Sorry CLI

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900