Microsoft KB Archive/167696

= FIX: Debug Static MFC Library Links to UrlMon.dll/Wininet.dll =

Article ID: 167696

Article Last Modified on 11/21/2006

-

APPLIES TO

 Microsoft Foundation Class Library 4.2, when used with:  Microsoft Visual C++ 5.0 Enterprise Edition

 Microsoft Visual C++ 5.0 Professional Edition 

-



This article was previously published under Q167696





SYMPTOMS
An application that statically links to the debug version of MFC also links to urlmon.dll and wininet.dll. The MFC static library brings in references to these DLLs even though the application does not use functionality in these DLLs. Executing this application on a machine that does not have these DLLs results in a message indicating that these DLLs cannot be found.



CAUSE
The debug static version of MFC has references to symbols in these DLLs even when the application is not using any functionality in these DLLs.

<div class="resolution_section">

RESOLUTION
Install these DLLs on the system from the ActiveX SDK. The release version does not link to these DLLs, so it is not necessary to redistribute these when releasing the product. These DLLs are needed only when debugging the application.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 6.0.

<div class="moreinformation_section">

Steps to Reproduce Behavior

 * 1) Create an AppWizard Application so that it statically links to MFC.
 * 2) Build the debug version.
 * 3) Execute this on a machine that does not have urlmon.dll and wininet.dll.

<div class="references_section">