I set up this this code so I can have a timer for a minesweeper game but I can't get it to compile.
void CALLBACK CMineSweeperBoard::clock(HWND hwnd, UINT uMsg, UINT timerId, DWORD dwTime)
{
if (t_seconds < 59){ t_seconds++; }
else{
t_minutes++;
t_seconds = 0;
}
}
void CMineSweeperBoard::timer(void)
{
MSG msg;
SetTimer(NULL, 0, 1000, (TIMERPROC) &clock);
while (GetMessage(&msg, NULL, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
The issue seems to be with the arguments in the set timer function but I can't find out what it is, any help would be appreciated.