Alright, so I am working on Visual C++ 2005 express edition... and I got a lil problem, im trying to make a command that re-start the button 37_click if hasstarted=0... (when its fixed, of course it will be something bigger, this is just to test if it work), here is the code:
Code:
private: System::Void button37_Click(System::Object^ sender, System::EventArgs^ e)
{
if (textBox1->Text != "")
{
if (hasstarted==1)
{
textBox1->Text = "Test";
}
else
{
hasstarted=1;
System::EventHandler(this, =&Form1::button37_Click);
}
}
}
Now the problem is this, when I compile it show this msg:
1>c:\documents and settings\shock\desktop\התיקיה של אורי\projects\shock -- charmed quiz\shock -- charmed quiz\Form1.h(4964) : error C3374: can't take address of 'ShOcKCharmedQuiz::Form1::button37_Click' unless creating delegate instance
And I was wondering if anyone can help me...
Cheers.