From: Ulrich Eckhardt on
Rayne wrote:
> I'm new to VS. I've tried to do this by going to Project -> Properties
> -> Configuration Properties -> C/C++ -> Command Line. Under Additional
> Options, I added /D "_WIN32_WINNT 0x0500"

Not sure about the syntax. In any case, it would be better to add it in the
preprocessor settings of the project. BTW: which VS are you using? If the
SDK shipped with it are too old (I guess those shipped with VS98 are) then
they wouldn't even contain those declarations conditionally.

Uli

--
C++ FAQ: http://parashift.com/c++-faq-lite

Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
From: Rayne on
On Dec 7, 4:46 pm, Ulrich Eckhardt <eckha...(a)satorlaser.com> wrote:
> Rayne wrote:
> > I'm new to VS. I've tried to do this by going to Project -> Properties
> > -> Configuration Properties -> C/C++ -> Command Line. Under Additional
> > Options, I added /D "_WIN32_WINNT 0x0500"
>
> Not sure about the syntax. In any case, it would be better to add it in the
> preprocessor settings of the project. BTW: which VS are you using? If the
> SDK shipped with it are too old (I guess those shipped with VS98 are) then
> they wouldn't even contain those declarations conditionally.
>
> Uli
>
> --
> C++ FAQ:http://parashift.com/c++-faq-lite
>
> Sator Laser GmbH
> Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

I'm using VS .NET 2003
From: Giovanni Dicanio on
"Giovanni Dicanio" <giovanniDOTdicanio(a)REMOVEMEgmail.com> ha scritto nel
messaggio news:ew13#QxdKHA.5568(a)TK2MSFTNGP02.phx.gbl...

>> error C2065: 'ComputerNameDnsHostname': undeclared identifier
>
> Did you define 'ComputerNameDnsHostname' in any place?

Sorry: I read that it is a predefined enum value.

Giovanni


From: David Lowndes on
>I'm new to VS. I've tried to do this by going to Project -> Properties
>-> Configuration Properties -> C/C++ -> Command Line. Under Additional
>Options, I added /D "_WIN32_WINNT 0x0500"

You can add preprocessor definitions under the preprocessor options.
You need to use:

_WIN32_WINNT=0x0500

Dave
From: Igor Tandetnik on
Rayne wrote:
> I'm new to VS. I've tried to do this by going to Project -> Properties
> -> Configuration Properties -> C/C++ -> Command Line. Under Additional
> Options, I added /D "_WIN32_WINNT 0x0500"

The syntax is /D_WIN32_WINNT=0x0500. Or, you could enter _WIN32_WINNT=0x0500 under Properties | C/C++ | Preprocessor | Preprocessor Definitions
--
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