Thread: IsGUIThread error

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    38

    IsGUIThread error

    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
    Code:
    BOOL IsGUIThread(      
        BOOL bConvert
    );
    Now that error was gone but a new one came,
    Code:
    unresolved external symbol "int __cdecl IsGUIThread(int)" (?IsGUIThread@@YAHH@Z)
    Any help on this one?

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    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.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    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):
    Code:
    #define _WIN32_WINNT 0x80000000
    #define _WIN32_IE    0x80000000
    Last edited by maxorator; 08-09-2007 at 07:38 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  4. #4
    Registered User
    Join Date
    Mar 2007
    Posts
    38
    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

  5. #5
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    There is no such thing as WinXP SDK. There is only the Microsoft Platform SDK.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM