Hey guys, I don't know whats up with this API. I tried going IsGUIThread(TRUE); but it would complain that IsGUIThread is a undeclared identifier. So then I went to MSDN and copy pasted this in my code
Now that error was gone but a new one came,
Any help on this one?
unresolved external symbol "int __cdecl IsGUIThread(int)" (?IsGUIThread@@YAHH@Z)
Make sure you've linked with User32.lib
and according to http://msdn2.microsoft.com/en-us/library/ms633525.aspx it's only supported on Windows XP, which means you'd need at least the Windows XP SDK.
Well, you seem to have wrong SDK, but some compilers also aren't designed to use Microsoft compilers' built-in features for SDK (like defining these things). So, against that, there is a simple fix (which should work for at least 10 million years more):
#define _WIN32_WINNT 0x80000000
#define _WIN32_IE 0x80000000
Okay well I'm going to download windows XP SDK. And I also use MVC++ and Win XP SP2.
EDIT: Well I seem to have something called "Microsoft Platform SDK", anyways going to search for WINXP SDK
There is no such thing as WinXP SDK. There is only the Microsoft Platform SDK.