Original Post
Can someone tell me why I get this error when trying to
compile this code using VC++ 5.0?
error C2664: ''SetTimer'' : cannot convert parameter 4 from
''void (void *,unsigned int,unsigned int,unsigned long)'' to
''int (__stdcall *)(void)''
##################### CODE ###################################
int PlaySnd(void)
{
SetTimer(hwndMain,PLAYBUTTON_TIMER_ID,
nSndSampleLen,PlayTimerProc);
return 0;
}
VOID CALLBACK PlayTimerProc(HWND hwnd,UINT message, UINT iTimerID, DWORD dwTime)
{
// Stuff.....
}
###################### END OF CODE ##############################
Thanks