Errors

This is a discussion on Errors within the Windows Programming forums, part of the Platform Specific Boards category; I tried to make my window trasparent using layers and look what compiler says F:\C\Trasnparent\MakeWindowTransparent.cpp(57) : error C2065: 'WS_EX_LAYERED' : ...

  1. #1
    Registered User cfrost's Avatar
    Join Date
    Apr 2004
    Posts
    119

    Errors

    I tried to make my window trasparent using layers and look what compiler says


    F:\C\Trasnparent\MakeWindowTransparent.cpp(57) : error C2065: 'WS_EX_LAYERED' : undeclared identifier
    F:\C\Trasnparent\MakeWindowTransparent.cpp(67) : error C2065: 'LWA_COLORKEY' : undeclared identifier
    F:\C\Trasnparent\MakeWindowTransparent.cpp(67) : error C2065: 'LWA_ALPHA' : undeclared identifier


    I am using VC++ 6 under windows xp pro

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Time to download the new version of the SDK!

    If that will take too long you could always;

    Code:
    #define WS_EX_LAYERED           0x00080000
    #define LWA_COLORKEY            0x00000001
    #define LWA_ALPHA               0x00000002
    That should allow it to work

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Or you could try #define _WIN32_WINNT 0x0500 before #including <windows.h>

    You should still get up to date with the latest SDK as Fordy has recommended.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. global namespace errors
    By stubaan in forum C++ Programming
    Replies: 9
    Last Post: 04-02-2008, 04:11 PM
  2. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 11:50 AM
  3. Unknown Errors in simple program
    By neandrake in forum C++ Programming
    Replies: 16
    Last Post: 04-06-2004, 03:57 PM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. errors in class(urgent)
    By ayesha in forum C++ Programming
    Replies: 2
    Last Post: 11-10-2001, 06:51 PM

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