SetLayeredWindowAttributes not recognized!

This is a discussion on SetLayeredWindowAttributes not recognized! within the Windows Programming forums, part of the Platform Specific Boards category; HI all, I am trying to use the function SetLayeredWindowAttributes() but unfortunately MSVC doesn't recognize it I use VC++v6.0 with ...

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    39

    Unhappy SetLayeredWindowAttributes not recognized!

    HI all,

    I am trying to use the function SetLayeredWindowAttributes() but unfortunately MSVC doesn't recognize it
    I use VC++v6.0 with Windows Server 2003 SP1 SDK installed.
    i have also include windows.h, user32.lib as defined in MSDN, but no hope.

    What could be the problem?

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,255
    Chances are your Platform SDK is either out of date or you've installed it somewhere that Visual C++ isn't looking. Try searching your include directory for the function and seeing if it turns up or not.

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    You need to #define _WIN32_WINNT as a minimum of 0x0500 (see winuser.h), eg.
    Code:
    #define _WIN32_WINNT 0x0500
    #include <windows.h>
    Although it's preferable to set the macro value within your project settings/options.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    Registered User
    Join Date
    May 2005
    Posts
    39

    Thumbs up

    Quote Originally Posted by Ken Fitlike
    You need to #define _WIN32_WINNT as a minimum of 0x0500 (see winuser.h), eg.
    Code:
    #define _WIN32_WINNT 0x0500
    #include <windows.h>
    Although it's preferable to set the macro value within your project settings/options.
    Hi Ken,

    Your suggestion worked!
    actually i set the value within Project settings...

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WinGui C Problem (WndProc not recognized?)
    By Floh85 in forum C Programming
    Replies: 4
    Last Post: 03-11-2008, 05:03 AM
  2. Memory not being recognized
    By BobMcGee123 in forum Tech Board
    Replies: 6
    Last Post: 07-26-2007, 01:48 AM
  3. Replies: 5
    Last Post: 06-07-2007, 01:41 PM
  4. functions in .C file not recognized in .CPP file
    By tooKool4School6 in forum C++ Programming
    Replies: 1
    Last Post: 06-02-2006, 10:30 AM
  5. String is not recognized?
    By Azmeos in forum C++ Programming
    Replies: 4
    Last Post: 02-28-2004, 05:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21