Original Post
I have a SetTimer like this:
SetTimer(main_window, 1, 1000, TimerProc);
and a TimerProc Callback function like this:
VOID CALLBACK TimerProc(HWND window, UINT message, UINT Id, DWORD dwTime)
{
switch(Id)
{
case(1):
{
sec++;
} break;
}
}
this is correct, however the Id is never one because I notice sec never increments. however, when i change it to this:
VOID CALLBACK TimerProc(HWND window, UINT message, UINT Id, DWORD dwTime)
{
sec++;
}
it works. i guess ill have trouble getting it to be able to distingquish between different timers, if it can''t handle one timer.