The previous ‘fix’ for this appears to have broken it.
#ifdef _WIN32_WCE
#define USE_GETTICKCOUNT
#define USE_SETTIMER
#endif
was changed to
#ifdef _WIN32_WCE
//#define USE_GETTICKCOUNT
//#define USE_SETTIMER
#endif
which broke it totally for Embedded Visual C++ 3.0 because it doesn’t
support timeSetEvent etc. Uncertain whether 4.0 supports this, but
unless someone can think of a better solution to support both, suggest
changing it back to
#ifdef _WIN32_WCE
#define USE_GETTICKCOUNT
#define USE_SETTIMER
#endif