From: Keith M. <kei...@us...> - 2007-07-29 18:41:53
|
On Sunday 29 July 2007 18:38, hatchetman82 wrote: [Using GetSystemTimes API] > my windows version is detected wrong and the #ifdef kicks in. No. You seem to be misunderstanding the purpose of WINVER and _WIN32_WINNT; your windows version is not detected at all -- you are expected to set the version you wish to support, in your own code. > im runing the with eclipse 3.3 (europa), CDT 4.0, MinGW 5.1.3 and > Msys 1.0.10 on a windows media center 2003 machine (which should > qualify for that method declaration). > any ideas on what im doing wrong ? or anything further i could post > to clear my problem up ? That function requires _WIN32_WINNT >= 0x0501. You must provide a define to select that windows version yourself, before you include windows.h, if you want to features of versions later than the default, which is 0x0400. HTH, Keith. |