I get a slew of syntax errors starting in line 243 of <WinBase.h>.
The compiler underscores such typedefs as ULONG_PTR, DWORD, PVOID and HANDLE among others.
You should include <windows.h>, and from there add any missing headers that are API-based. Trying to cherry-pick which "sub-header" to include, as you've done, isn't the way to go about this.
You should include <windows.h>, and from there add any missing headers that are API-based. Trying to cherry-pick which "sub-header" to include, as you've done, isn't the way to go about this.
Thanks. Including <windows.h> does eliminate the error.
It states that the header file is WinBase.h on WinXP.
You have to read it all.
WinBase.h on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008, and Windows Server 2008 R2 (include Windows.h);
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
Bookmarks