Dynamic Linking

This tutorial describes how to setup Coverage Validator to include or exclude different source files from coverage processing when you are dynamically linking your application with MFC and/or the C Runtime.

When you dynamically link to MFC and the CRT, the code for MFC and the CRT is held in separate DLLs to your application. This allows you to specify not to process MFC or CRT code by simply indicating which DLLs not to process – you don’t need to know where the source code for those DLLs is.

  • Open the settings dialog by clicking the tools icon on the toolbar.
    Coverage Validator settings icon
  • The Settings Dialog is displayed. Select the Hook Insertion tab.
    Coverage Validator hook insertion
  • Select the check boxes in the section marked DLL Hook Insertion. The image shows that the MFC, CRT, STL and system DLLs have been marked to be ignored (deselected).

Fully functional, free for 30 days