Automation in a DLL
Visual Studio 2015
For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.
For the latest documentation on Visual Studio 2017, see Automation in a DLL on docs.microsoft.com. 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
DllGetClassObjectfunction, which calls the AfxDllGetClassObject functionAn implementation of the
DllCanUnloadNowfunction, which calls the AfxDllCanUnloadNow functionAn implementation of the
DllRegisterServerfunction, which calls the COleObjectFactory::UpdateRegistryAll function
Show:

