Hi
I need a little timer example which uses the SetTimer function, because i wasn't able to get it working.
If someone has a example post it please.
spyro
Timer example...
No idea what SetTimer you're talking about but search Google (yes it's easy) or:
http://www.koders.com/?s=SetTimer&_%3Ala=Cpp&_%3Ali=*
http://www.koders.com/?s=SetTimer&_%3Ala=Cpp&_%3Ali=*
Here is the definition of the function:
Here is the full definition -> Link
I tried to replace the last parameter of this function (IpTimerFunc) with the name of my function, but it didn't work.
Any ideas?
spyro
Code: Select all
UINT_PTR SetTimer(
HWND hWnd,
UINT_PTR nIDEvent,
UINT uElapse,
TIMERPROC lpTimerFunc
);
I tried to replace the last parameter of this function (IpTimerFunc) with the name of my function, but it didn't work.
Any ideas?
spyro
Here is the error
PS: I'm using DevCPP
spyro
Code: Select all
expected constructor, destructor, or type conversion before '(' token
expected `,' or `;' before '(' token
[Build Error] [main.o] Error 1
spyro
Code: Select all
#include <windows.h>
void test()
{
}
SetTimer(hwnd, NULL, 1000, test);
int main()
{
}