QUOTE(perfectly.insane @ 4 Aug, 2008 - 05:12 PM)

Make sure your MinGW installation is recent. If you're using Cygwin instead, then really make sure, as the Cygwin Windows API headers tend to lag behind the MinGW ones (although they are mostly borrowed from the MinGW project anyway). There should NOT need to be any special preprocessor definitions given to get those parts of the header (nothing like _WIN32_WINNT=0x0xxx).
Thanks for the advice but still isn't working on MinGW, anyway any hints on how to build this with Visual Studio 2008 for ppc? It's just paste and build while building for Win32 but building it for a mobile device seems to be a diferent story...could really use some help in this all I've ever done for Windows Mobo was Hello World and Fibo

By the way the errors I presented above are exactly the ones I get when trying to build for ppc with VS.
battery.cpp: In function 'int main()':
battery.cpp:17: error: 'SYSTEM_POWER_STATUS' was not declared in this scope
battery.cpp:17: error: expected `;' before 'sps' battery.cpp:18: error: 'sps' was not declared in this scope battery.cpp:18: error: 'GetSystemPowerStatus' was not declared in this scope
This post has been edited by JoaoPatrx: 6 Aug, 2008 - 05:25 PM