
Debugging VC 6.0 Project under VC 5.0
There's one common problem while porting VC6.0 project back to VC5.0.
VC6.0 uses compiler command line options (/ZI and /GX) that are
introduced in VC6.0.If you open your project under VC5.0, these options
are kept in the makefile, thus neigther the compiler nor the IDE knows
anything about them.
/ZI option, used as a replacement for /Zi (yep, it's case sensitive)
specifies the "Edit&Continue" stuff. Since that option is unknown to the
compiler, and there's no other option listed for pdb builing, the
compiler won't put any debug info into the object file. This is why you
can't put the breakpoint.
Go to your project settings, and manually change /ZI to /Zi in the
editbox where the compiler command line options are listed.
Peter Zahoran