From: hatchetman82 <hat...@gm...> - 2007-07-29 17:38:46
|
Hello. i've installed MinGW 5.1.3 and msys 1.0.10 on my machine, and created a new helloWorld C project in eclipse (following the eclipse CDT guide). everything works fine. what i tried to do next was add 2 includes (windows.h and winbase.h) in order to use GetSystemTimes() to calculate the cpu load % (im trying to re-create the code shown here: http://www.codeproject.com/threads/Get_CPU_Usage.asp). i keep getting "implicit declaration" warnings (and a compile error) when using the method. its as my windows version is detected wrong and the #ifdef kicks in. 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 ? thank you very much in advance for any assistance |