hi guys im having an error with my code but cant seem to figure it out.
its a windows form and im just trying to make it function but the compiler gives me these errors:
1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2059: syntax error : '{'
1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
This is my code
line 88 private: System::Void checkBox1_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
{
unsigned long oldProtect;
VirtualProtect((LPVOID)SuperTubiAddy, 2, PAGE_EXECUTE_READWRITE, &oldProtect);
if(this->checkBox1->Checked)
{
memcpy((void*)SuperTubiAddy, enableSuperTubi, sizeof(enableSuperTubi));
}
else
{
memcpy((void*)SuperTubiAddy, disableSuperTubi, sizeof(disableSuperTubi));
}
}
};
line 104}
i have written the line numbers on the side please help thanks. :D