Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

Debugging a Custom AppWizard

To debug your custom AppWizard project, because it is a DLL, you will need to specify the executable to use for debugging, just as you would for any other DLL. You do this by enabling the Executable for Debug Session check box on the Debug tab of the Build Settings dialog box.

For debugging custom AppWizards, you should specify the executable for Developer Studio itself, which usually is installed to a path similar to this:

C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE

After you set this path, starting the debugger on your custom AppWizard project starts up a second instance of Developer Studio. You can use the first instance of Developer Studio to set breakpoints in your DLL and perform other debugging tasks. In the second instance of Developer Studio, you need to create a new project using your custom AppWizard. Creating the new project executes your custom AppWizard code, enabling you to debug your code.

Share ThisShare This

Informit Network