1.demo1: Generate My.dll, my.pdb, my.lib files with dll_01.
2.demo2: Use dll_01 DLL in dll_01_app_02.
Steps:
1.vs2008 Open the DLL_01_APP_02 project, configure the path of the. h file, My.dll, and my.lib so that the functions inside the my.dll can be called.
2. Place the generated my.pdb file into the dll_01_app_02 current directory.
3. Copy the. cpp source file dll_01 used to generate the My.dll to the dll_01_app_02 current directory.
4. Symbols, debugging, menu bar Tools, options, add the path to the my.pdb.
5. Breakpoint debugging, F11 can enter the My.dll function in the source code.
With the PDB file debugging, as long as there is a source code file (. cpp) to generate the DLL, you can now use the DLL's project break point, F11 into the source debugging.
In this way, the bug is more convenient to tune up, others no longer need to reconfigure, compile the project that generated the DLL.
How to use the. pdb file