'WS_EX_LAYERED' : undeclared identifier
-
Why am I getting this error? I've got Windows XP and I just downloaded and installed the Platform SDK from Microsoft's website (I didn't include the 64bits stuff thought). In MSDN (July 2000) says that WS_EX_LAYERED is for Windows 2000 only, but don't that include XP too; or doesn't it? Anyway, if this really is just for Windows 2000, how do I create transparent windows and fancy stuff like that? Sprudling :confused: PS! I have the same problem with the function 'SetLayeredWindowAttributes', which also requires Windows 2000.
-
Why am I getting this error? I've got Windows XP and I just downloaded and installed the Platform SDK from Microsoft's website (I didn't include the 64bits stuff thought). In MSDN (July 2000) says that WS_EX_LAYERED is for Windows 2000 only, but don't that include XP too; or doesn't it? Anyway, if this really is just for Windows 2000, how do I create transparent windows and fancy stuff like that? Sprudling :confused: PS! I have the same problem with the function 'SetLayeredWindowAttributes', which also requires Windows 2000.
In the on-line MSDN, it says W2000/XP. XP was not out yet in July 2000. I checked my version of winuser.h and I don't have it defined. I have found that when you have version-specific definitions they are usually protected by target version macros. Check your headers (find in files) for WS_EX_LAYERED and see what target version macros it is hidden by and then define them in your project options. Usually the macro is of the form (WINVER >= 0x0z00). If you define WINVER to be 0x0500 then you should be okay. This will target W2000 which could cause problems if your app is to run on earlier versions.
-
In the on-line MSDN, it says W2000/XP. XP was not out yet in July 2000. I checked my version of winuser.h and I don't have it defined. I have found that when you have version-specific definitions they are usually protected by target version macros. Check your headers (find in files) for WS_EX_LAYERED and see what target version macros it is hidden by and then define them in your project options. Usually the macro is of the form (WINVER >= 0x0z00). If you define WINVER to be 0x0500 then you should be okay. This will target W2000 which could cause problems if your app is to run on earlier versions.
Now I understand... The headers included with VS 6.0 didn't define WS_EX_LAYERED anywhere. However 'winuser.h' in the Microsoft SDK directory did. I thought the Platform SDK somehow integrated itself to VS 6.0. Atleast it told me it did when I installed it, but I guess that didn't work. So, how do I do this manually? Sprudling
-
Now I understand... The headers included with VS 6.0 didn't define WS_EX_LAYERED anywhere. However 'winuser.h' in the Microsoft SDK directory did. I thought the Platform SDK somehow integrated itself to VS 6.0. Atleast it told me it did when I installed it, but I guess that didn't work. So, how do I do this manually? Sprudling
-
Now I understand... The headers included with VS 6.0 didn't define WS_EX_LAYERED anywhere. However 'winuser.h' in the Microsoft SDK directory did. I thought the Platform SDK somehow integrated itself to VS 6.0. Atleast it told me it did when I installed it, but I guess that didn't work. So, how do I do this manually? Sprudling
Your answer's in the VC forum FAQ. --Mike-- "Everyone has figured out what 'service pack' really means, so they had to go and change the language. Perhaps this is what Bill was talking about in the 'security is top priority' letter." -- Daniel Ferguson, 1/31/2002 My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan.