RE: Visual Studio 2005 support

"Dan Swaney" <[email protected]> Fri, 22 Jun 2007 12:09:47 -0400
Newsgroups gmane.comp.lib.libwww
Message-ID <20070622161107.WZJL20043.eastrmmtao107.cox.net@eastrmimpo01.cox.net>
Visual Studio can typically upgrade earlier Solution and Project files
as far back as Visual C++ 6.0.

Unfortunately, starting in Visual Studio 2005, Microsoft added a default
option where the WINVER #define defaults to Windows 2003 Server.

What this means is that the compiled library/application will refuse to
run on Windows NT, 2000, and XP.  It doesn't even display an error either
-- the app will just do nothing.  

What you need to do is make sure to define WINVER to 0x0400 -- which means
allow the app to run on Windows NT and above.  You can do this through
the project settings so you don't have to add it to your code.

=Dan=

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
Vic Bancroft
Sent: Wednesday, June 20, 2007 7:48 AM
To: Jack Hughes
Cc: [email protected]
Subject: Re: Visual Studio 2005 support


Jack Hughes wrote:

> Has anybody had a go at getting www-lib to build under Visual Studio 
> 2005?

Interesting question, my operating system environments are linux and 
NetBSD, though I have recently considered Solaris.  If there is a 
general interest in supporting various IDE's, then we should outline 
which have folks willing to contribute the appropriate supporting 
files.  For eclipse, one might want to have the .project file under 
version control.

Does the VisualStudio world have methods for detecting the IDE version 
and adapting, or would we need to check in a different file for each ?

more,
l8r,
v

-- 
"The future is here. It's just not evenly distributed yet."
 -- William Gibson, quoted by Whitfield Diffie