954,487 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Using a Bitmap Resource in Visual C++ 2010 - Windows Form Application

All right, the solution for this question might be awkwardly simple, but I'm totally lost and confused on this.

I have created a Windows Form Application in Visual C++ 2010 Ultimate and included some resource files (BMP Images) in Form1.resX. For example, one of them is picture1.bmp. I have a picture-box on the main form and I want to show that picture1.bmp when I click a button. It was quite simple in Visual basic, all you have to do is

PictureBox1.Image = My.Resources.Picture1 [VB]

But I don't know how to do it in VC++ 2010.

I have been searching the solution over the net but most of the solutions I found were complex and went over my head. I do not want to use handles or anything like that, please help me out with the simplest method.

Thank you.

uzidon
Newbie Poster
3 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 
mazzica1
Junior Poster
147 posts since Oct 2011
Reputation Points: 9
Solved Threads: 27
 

Well I think I found the "simplest" solution:

http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/b39670a9-445e-4ee6-b58e-c6da9e99394f/

Hope it helps someone who's looking for it.

uzidon
Newbie Poster
3 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: