Where "DBG" macro in Debug-version of Project ?

Sysprogs forums Forums VisualDDK/VirtualKD discussion Where "DBG" macro in Debug-version of Project ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #197
    sys_dev
    Participant

    Hi, people!

    I just created simple project and open its options. I see next command line :
    Active(Debug) -> “Configuration properties” -> “CC++” -> “command line” :

    /I “C:WinDDK7600.16385.1incddk” /I “C:WinDDK7600.16385.1incapi” /I “C:WinDDK7600.16385.1inccrt” /D “WIN32” /D “_CONSOLE” /D “_X86_” /D “_DDK_” /D “_DEBUG” /X /FD /MTd /GS- /GR- /Fo”Debug\” /Fd”Debugvc90.pdb” /nologo /c /Zi /Gz /TP /errorReport:prompt

    But wdm.h file consist :

    #if DBG
    
    #define KdPrint(_x_) DbgPrint _x_
    #define KdPrintEx(_x_) DbgPrintEx _x_
    #define vKdPrintEx(_x_) vDbgPrintEx _x_
    #define vKdPrintExWithPrefix(_x_) vDbgPrintExWithPrefix _x_
    #define KdBreakPoint() DbgBreakPoint()
    
    #define KdBreakPointWithStatus(s) DbgBreakPointWithStatus(s)
    
    #else

    Why template without “DBG” macro definition ?

    #1444
    Anonymous
    Participant

    It seems you are using Visual Studio’s default build engine. This is not used for building drivers – VisualDDK uses makefile-style project to invoke DDK build environment. (Therefore Visual Studio cannot display compiler’s command line.)
    In Visual Studio in menu File, New, New Project select item “VisualDDK Driver Project”.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.