PDA

View Full Version : An error >.>



Vindcare
11-28-2007, 08:58 AM
Hi all.
I'm a rookie in VC++ so be patient cuz i can ask some noobie questions
I'm coding a hac in Cpp and i get an error
E:\Program Files\Microsoft Visual Studio\MyProjects\cppshack\cppshackDlg.cpp(228) : error C2084: function 'void __thiscall CCppshackDlg::OnTimer(unsigned int)' already has a body

I was looking for a solution for this problem but didnt find anything good.
If someone can hep me please post a solution here, but in easy english, cuz i dont understand it too good.

I just know that a name with the void is already in my code but how to fix it? Make it a function or what?

Dxt-Cobra
11-28-2007, 10:17 AM
already has a body means you already defined the timer function.You need to create timers inside the timer function.as


case FIRSTTIMER
{

}
Break;

case SECONDTIMER
{

}
break;

case THIRDTIMER
{

}
break;

Vindcare
11-28-2007, 10:28 AM
Ok, ths i check it

2 mins later:
Thx man u helped me very much, now i have no more bugs :D