Easy recently used a structure: scrollbarinfo, it is impossible to compile (with VC6 SP6), and the prompt is not found. Look at the API documentation, mention:
HeaderDeclared in Winuser.h, Include Windows.hminimum Operating Systemswindows 98, Windows NT 4.0 with Service Pack 6
I don't think there is no problem, I have to open Winuser.h open, I found that I actually asked WinVer> = 0x500, and the default version of the API provided by the VC6 provided is 0x400 (the API header with VC7 has been upgraded. 0x500 or more).
So, I had to have a predefined. #define winver 0x500. Compile OK, VC6 appears as follows:
NOTE: WINVER has been defined as 0x0500 or greater which enablesWindows NT 5.0 and Windows 98 features When these headers were released, Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.For this release when WINVER is defined as 0x0500 or. greater, you can onlybuild beta or test applications. to build a retail application, set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdkto see if retail Windows NT 5.0 or Windows 98 headers are available.See the SDK RELEASE Notes for more information.
In fact, it doesn't help it, what ages mentioned, the Windows version mentioned in the article can no matter whether it is. I think this is also MS's VC6 years not to develop, bringing questions. Think about the VC6 is already a lot of products many years ago.
Stone 2005-03-19