views:

143

answers:

1

In visual studio, when making a C++ windows application form. I want a picture to change when I click on it.

So when I double click the picture and it brings up the click action script, what script do I use.....

Similiar to

 int temp = System::Int32::Parse(label1->Text);
 temp++; label1->Text =
 temp.ToString();

Which just increments an integer in a label

A: 

I asked (and answered) a very similar question which may be of use?

Jon Cage
Thanks Jon, that worked well for me, I can finally move forward.If anyone knows, is that the only way to do it? or is there an easier way?(without having to Add libraries to your linker settings
Jimbo
As far as I remember, the extra libraries (which you should have already installed if you're using windows) were only required to load the bitmaps so if you have another way of loading your images, you might be able to do without them.
Jon Cage
Thanks for your input!Just as a matter of interest, if Visual Studio makes windows applications, why would it need to be added if I'm using windows (am using windows)?Is there any other packages which is a must for someone using windows?
Jimbo
Well what if you don't want to use all the gazillions of libraries that ship with windows? What if you're using an older or newer version of windows? There are different libraries for each so to link to all of them would (a) waste time in the linker for all the ones you didn't want (b) be very difficult to get a complete list that works for all versions/flavours of windows.
Jon Cage