www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - ? _WIN32_WINNT ?

reply "Heinz-Peter Nüttgens" <heinmueck58 gmx.de> writes:
Hello,

can anybody tell me, where in the DMC environment the macro _WIN32_WINNT is
defined, if ever.

I just ask because I tried to use the CoInitializeEx function and got the
error message from the compiler that this
function isn't define. But it should be, if (_WIN32_WINNT is >= 0x0400).

Thanks a lot

Heinz-Peter
Aug 26 2004
parent "Walter" <newshound digitalmars.com> writes:
It's never defined. If you need it defined, you'll need to add it to the
command line or before the #include's.

"Heinz-Peter Nüttgens" <heinmueck58 gmx.de> wrote in message
news:cgkcv2$5gp$1 digitaldaemon.com...
 Hello,

 can anybody tell me, where in the DMC environment the macro _WIN32_WINNT
is
 defined, if ever.

 I just ask because I tried to use the CoInitializeEx function and got the
 error message from the compiler that this
 function isn't define. But it should be, if (_WIN32_WINNT is >= 0x0400).

 Thanks a lot

 Heinz-Peter
Aug 30 2004