| Programming C# C++ (7) Delphi (604) Java (8) JavaScript (55) perl (40) php (12) VBScript (1) Visual Basic (1) |
Error message "WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server)"
(1 votes). Leave comments and/ or rate it.
Question: I am porting an application from apple's objective-C to Visual C++ .NET. I keep getting the following compilation warning (? error?) message:Error message "WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server)" Should I be concerned? Answer: If you don't do this already, you should be including stdafx.h in all your modules as the first include statement.Then add the following into your project's stdafx.h: #define WINVER 0x0400 Note: Define it for the lowest operating system you need your app to run on, not the OS you build on. It defaulted to 0x0501 because you build on XP but defining it as 0x0400 will allow it to run on Windows 2000 as well. You may also want to read Microsoft's comments on modifying WINVER here: Comments:
|