Automation in a DLL
The latest version of this topic can be found at Automation in a DLL.
When you choose the Automation option in the MFC DLL Wizard, the wizard provides you with the following:
A starter object description language (.ODL) file
An include directive in the STDAFX.h file for Afxole.h
An implementation of the
DllGetClassObject
function, which calls the AfxDllGetClassObject functionAn implementation of the
DllCanUnloadNow
function, which calls the AfxDllCanUnloadNow functionAn implementation of the
DllRegisterServer
function, which calls the COleObjectFactory::UpdateRegistryAll function