I have a C++ project in Microsoft Visual C++, and I have included windows.h. But I’m getting undeclared identifier errors when using CreateTimerQueueTimer, DeleteTimerQueueTimer and WT_EXECUTEINTIMERTHREAD.
As long as I have seen, they should be all declared into windows.h, so I don’t understand the problem.
Also, I have other winapi functions being used without problem in the same file, e.g. CreateProcess, so I suppose libraries are installed correctly.
Any help?
You are getting “undeclared identifier” errors because you are using Visual C++ 6, and its Platform SDK headers (from 1998) predate the introduction of the timer-queue functions.
Versions of the SDK that still work with Visual C++ 6 are no longer available for download from the Microsoft Download Center, though direct links to original files still work (see Hans Passant’s comment below), or they can be ordered here.