Original Post
Hi there, I''m working on something where I need to create a waitable timer event to be used in conjunction of winsock overlapped i/o. I''m running Windows XP home edition. for some reason when i tried to set it up using CreateWaitableTimer() in VC++ 6.0 (same result in Visual Studio.Net), it complained that there''s no such function: "error C2065: ''CreateWaitableTimer'' : undeclared identifier." The code i use is as follow:
Handel waitEvents = CreateWaitableTimer(NULL, TRUE, "WaitableTimer");
I even tried to compile the code from (link below) MSDN and it still won''t work... if someone knows the reason why this is so please let me know. Thanks in advance..
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/using_waitable_timer_objects.asp