Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where to get retail headers for WINVER 0x0500? 1

Status
Not open for further replies.

zer0FX

Programmer
Jan 14, 2003
5
CA
Hello,

I am running Visual C++ with SP5 on Windows 2000 with SP3.

I need to access functionality that is defined when WINVER (windows version) is 0x0500. It is currently defined as 0x0400. I am able to override it by defining WINVER to be 0x0500 but the following note appears after compilation:

Code:
NOTE: WINVER has been defined as 0x0500 or greater which enables Windows 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 only build beta or test applications.  To build a retail application, set WINVER to 0x0400 or visit [URL unfurl="true"]http://www.microsoft.com/msdn/sdk[/URL] to see if retail Windows NT 5.0 or Windows 98 headers are available. See the SDK release notes for more information.
[\code]

I have run WINVER from the Start menu, and I'm told that I'm using version 5.0. I have gone to the website mentioned in the note, but have not found anything.

Does anyone know where (or if) I can get the retail headers for windows version 5.0?

Thanks.

--zer0FX
 
put this line before any #includes of windows headers as windows.h, winuser.h ...:
#define _WIN32_WINNT 0x0050 Ion Filipski
1c.bmp


filipski@excite.com
 
I tried that, but to no avail. I get the same errors as before, namely:

'MONITORINFO' : undeclared identifier
...and so on (other related errors)

It will only compile if I put

#define WINVER 0x0500

but, that produces the note listed in my first post.

--zer0FX
 
The SPs does not update the headers, and you will need the newer header from MS.

Go to MSDN and download the latest Platform SDK. In the IDE, select Tools -> Options, slect Directories tab, add the entry of the SDK include directory to the "Include files" category.

HTH
Shyan


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top