Re: GetWallpaper flags: AD_GETWP_IMAGE, AD_GETWP_BMP, AD_GETWP_LAST_APPLIED
"feedscrn" <feedscrn@yahoo.com> wrote in message
news:1163025718.599998.183460@e3g2000cwe.googlegroups.com
Using Visual C/C++ 6.0 on XP. The excellent example program:
COMIntro_src.zip (from http://www.codeproject.com/com/comintro.asp)
compiles and runs fine when downloaded. I just dbl-click on the .dsp
file and the whole project gets imported into Visual C/C++.
I am having a problem gettting it to compile when I change the
GetWallpaper call from a dwFlag of '0' to AD_GETWP_LAST_APPLIED. I get
the dreaded 'Undeclared Identifier' error msg.
These flags appear to be defined very recently. They could probably be
found in the latest Platform SDK:
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5
However, this SDK version cannot be used with VC6. The newest version
that is still compatible with VC6 is February 2003
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
But it does not have these flags defined.
You have two options. First, you can upgrade to a newer compiler and use
the latest PSDK. Or, you can download (but not install) the latest PSDK
(or find someone who already has it installed), look up the numeric
values for these flags and define them yourself in your own header.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925