Microsoft KB Archive/244955

From BetaArchive Wiki
Knowledge Base


ATL projects built for MinDependency need Atl.dll if the projects use ATL control containment code in Visual C++ 6.0

Article ID: 244955

Article Last Modified on 6/3/2005



APPLIES TO

  • Microsoft ActiveX Template Library 3.0, when used with:
    • Microsoft Visual C++ 6.0 Enterprise Edition
    • Microsoft Visual C++ 6.0 Professional Edition
    • Microsoft Visual C++ 6.0 Standard Edition



This article was previously published under Q244955

SYMPTOMS

ATL projects built for MinDependency will still need Atl.dll if they use ATL control containment code.

CAUSE

ATL's control containment implements interfaces that are described by the type library in Atl.dll.

RESOLUTION

Include the Atl.dll file.

STATUS

This behavior is by design.

MORE INFORMATION

ATL's control containment implements two dual interfaces, IDocHostUIHandlerDispatch and IAxWinAmbientDispatch, as a part of the control container. Because the dual interfaces are implemented using IDispatchImpl, they delegate to the type library for implementation of IDispatch methods. This requires the type library describing these interfaces to be registered. This type library exists in Atl.dll.


Additional query words: IDocHostUIHandlerDispatch, IAxWinAmbientDispatch IDispatchImpl static

Keywords: kbtshoot kbregistry kbcontainer kbprb KB244955