Question

I have a dll project in a solution that I want to debug. The calling application is in a different path and the DLL must be placed inside that path. When I build the debug version and copy+paste the produced DLL into the calling application's path, I get an error message that there are no symbols and that the binary wasn't built by the project. It asks me if I want to continue. This method used to work in visual c++ 6.0 but now it never hits any breakpoints.. How do I do this in VS2005?

Thanks.

Was it helpful?

Solution

Make sure the pdb file for the dll is also in the application's path.

Or alternatively compile your dll with the /Z7 compiler option, that will trigger the old-style debug info as it was used in MSVC 6.0. If you compile like this, you will be able to copy just the dll.

Or alternatively in the 'Modules' window, right-click your dll and select 'Load Symbols', then point the dialog to the original location of your dll.

OTHER TIPS

Also copy <your dll>.PDB

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top