cant compile windows form application?
this is my first time messing around with the windows form application, it seems like it doesnt not compile code as a normal console program does. heres what im trying to do, make a start and stop, and a exit button. it compiles and runs when i just have Application::Exit(); but my code in button1 throws an error when i compile.
Code:
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
if (GetAsyncKeyState(VK_CAPITAL)){
Sleep( 85 );
keybd_event( VK_LBUTTON,0x1,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYDOWN,0);
Sleep( 85 );
keybd_event( VK_LBUTTON,0x1,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0);
}
}
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
Application::Exit();
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
}
};
