what is the macro to set debugger in VC++ for the SOURCE file.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Harry Potter (hpotter_at_azkabar.com)
Date: 10/07/04


Date: Thu, 7 Oct 2004 14:21:01 -0700

what is the macro (win 2000) to set debugger and linker option in the SOURCE
file (using VC++ 6.0)? could you provide me with the link in net?
Now that I know how to build my complete set of symbol file (the message
bellow from Oleg) I have another question.
How can I set these options in the SOURCE file for building the driver
here is what I already have

TARGETNAME=passthru
TARGETPATH=obj
TARGETTYPE=DRIVER

C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1

!if !defined(DDK_TARGET_OS) || "$(DDK_TARGET_OS)"=="Win2K"
#
# The driver is built in the Win2K build environment
#
C_DEFINES=$(C_DEFINES) -DNDIS40_MINIPORT=1
C_DEFINES=$(C_DEFINES) -DNDIS40=1
!else
#
# The driver is built in the XP or .NET build environment
# So let us build NDIS 5.1 version.
#
C_DEFINES=$(C_DEFINES) -DNDIS51_MINIPORT=1
C_DEFINES=$(C_DEFINES) -DNDIS51=1
!endif

# Uncomment the following to build for Win98/SE/WinMe
# This causes several APIs that are not present in Win9X to be
# ifdef'ed out.
# C_DEFINES=$(C_DEFINES) -DWIN9X=1

PRECOMPILED_INCLUDE=precomp.h
PRECOMPILED_PCH=precomp.pch
PRECOMPILED_OBJ=precomp.obj

TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib

USE_MAPSYM=1
#
# setup visualC++ source browsing
#
BROWSER_INFO=1
BSCMAKE_FLAGS=$(BSCMAKE_FLAGS) -n

Thank you for the help.

"Oleg Starodumov" <oleg_staro@hotmail.com> wrote in message
news:uKx2pP5qEHA.2588@TK2MSFTNGP12.phx.gbl...
>
> > I'm using VC++ 6.0 on win 2000... where/how do I set the option to get
> > complete symbol files for the entire code (each .cpp)?
> >
>
> Compiler: /Zi (you can also use /Z7 or /ZI - see their documentation)
> Linker: /debug /debugtype:cv /pdb:yourapp.pdb /pdbtype:con
>
> In release build, add /opt:ref linker option.
>
> Make sure that compiler options are not overwritten on the file level.
>
> > is everything going to be in one .pdb file?
>
> If you use .PDB file (/pdb:filename), it depends on /pdbtype option.
> With /pdbtype:con, all debug information for executable is stored in one
.PDB file.
> With /pdbtype:sept, you usually get at least two files (yourapp.pdb and
vc60.pdb).
>
> You can take a look at this article for more detailed information:
> http://www.debuginfo.com/articles/gendebuginfo.html
>
> Regards,
> Oleg
>
>
>
>
>
>
>
>
>
>
>
>



Relevant Pages

  • what is the macro to set debugger in VC++ for the SOURCE file.
    ... bellow from Oleg) I have another question. ... How can I set these options in the SOURCE file for building the driver ... # The driver is built in the XP or .NET build environment ...
    (microsoft.public.vc.debugger)
  • what is the macro to set debugger in VC++ for the SOURCE file.
    ... bellow from Oleg) I have another question. ... How can I set these options in the SOURCE file for building the driver ... # The driver is built in the XP or .NET build environment ...
    (microsoft.public.win32.programmer.networks)
  • what is the macro to set debugger in VC++ for the SOURCE file.
    ... bellow from Oleg) I have another question. ... How can I set these options in the SOURCE file for building the driver ... # The driver is built in the XP or .NET build environment ...
    (microsoft.public.win32.programmer.kernel)
  • Re: WDFQUEUEs REQUIRE DISPATCH_LEVEL operation on X64/AMD64 platf
    ... the code is the same but it works properly within only one build environment, ... problem may not be a framework issue but the combinatiion of build and ... Our application using the driver, on our system, is ... WdfDeviceInitAssignWdmIrpPreprocessCallback where the execution level ...
    (microsoft.public.development.device.drivers)
  • Re: Should SUV Driving amount to Drunk Driving?
    ... Murderous Speeding Drunken Distracted Driver (Hector Goldstein): ... I know their wanton disregard for the environment and ... Please do the environment a favor and kill yourself. ...
    (rec.autos.driving)