Variadic Macros issue using 3790.1830 DDK self contained compiled ver 13.10.4035 for 80x86

I just want to use the Variadic Macros feature that only support the c/c++
compile after the VS2005 release. But the DDK use the compile is prior to VS
2005 lack of this feature.
such as
void realdprintf (char const *file, int line, char const *fmt, …); #define
dprintf(…) realdprintf(FILE, LINE, VA_ARGS)have any suggestion
to update the compile version for DDK 3790.1830

The fix for you is to use the wdk which has support for this feature.

D

-----Original Message-----
From: “xxxxx@hotmail.com
To: “Windows System Software Devs Interest List”
Sent: 07/31/07 4:10 AM
Subject: [ntdev] Variadic Macros issue using 3790.1830 DDK self contained compiled ver 13.10.4035 for 80x86

I just want to use the Variadic Macros feature that only support the c/c++
compile after the VS2005 release. But the DDK use the compile is prior to VS
2005 lack of this feature.
such as
void realdprintf (char const *file, int line, char const *fmt, …); #define
dprintf(…) realdprintf( FILE , LINE , VA_ARGS )have any suggestion
to update the compile version for DDK 3790.1830


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

  1. upgrade to the latest version of the WDK (6000) and test to make sure
    that the supplied compiler (that is approximately VS 2005) supports the
    feature.

  2. settle for the old way and wrap the invocation arguments in
    parenthesis.

  3. use an inline varargs function instead of a macro.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Tuesday, July 31, 2007 7:05 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Variadic Macros issue using 3790.1830 DDK self
contained compiled ver 13.10.4035 for 80x86

I just want to use the Variadic Macros feature that only support the
c/c++
compile after the VS2005 release. But the DDK use the compile is prior
to VS
2005 lack of this feature.
such as
void realdprintf (char const *file, int line, char const *fmt, …);
#define
dprintf(…) realdprintf(FILE, LINE, VA_ARGS)have any
suggestion
to update the compile version for DDK 3790.1830


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

WDK 6000 compiler supports variadic macros. To check if the feature is available I use following code:

#if _MSC_FULL_VER >= 140050727
// macro variable arguments available, we can use more efficient trace macros
#define _TDBG_VARARGS
#endif // _MSC_FULL_VER >= 140050727

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]


From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Roddy, Mark[SMTP:xxxxx@stratus.com]
Reply To: Windows System Software Devs Interest List
Sent: Tuesday, July 31, 2007 4:17 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Variadic Macros issue using 3790.1830 DDK self contained compiled ver 13.10.4035 for 80x86

  1. upgrade to the latest version of the WDK (6000) and test to make sure
    that the supplied compiler (that is approximately VS 2005) supports the
    feature.

  2. settle for the old way and wrap the invocation arguments in
    parenthesis.

  3. use an inline varargs function instead of a macro.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Tuesday, July 31, 2007 7:05 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Variadic Macros issue using 3790.1830 DDK self
contained compiled ver 13.10.4035 for 80x86

I just want to use the Variadic Macros feature that only support the
c/c++
compile after the VS2005 release. But the DDK use the compile is prior
to VS
2005 lack of this feature.
such as
void realdprintf (char const *file, int line, char const *fmt, …);
#define
dprintf(…) realdprintf(FILE, LINE, VA_ARGS)have any
suggestion
to update the compile version for DDK 3790.1830


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer