Creating a Registration File

Before an application can use OLE and Automation, the OLE objects must be registered with the user's system registration database. OLE provides sample registration files to perform this task for the OLE objects and the sample applications. Registration makes the following possible:

You can use the DLLRegisterServer function to register all objects implemented by a dynamic-link library (DLL). This function registers the class identifiers (CLSIDs) for each object, the programmatic identifiers (ProgIDs) for each application, and the type library. For details, refer to the description of DLLRegisterServer in Programming with MFC, provided with Microsoft Visual C++ version 4.1 and later product documentation.

The following sections give a brief overview of the syntax used in registering ActiveX objects. Descriptions of the process are provided later in this chapter. For detailed information, refer to the OLE Programmer's Reference in the Win32 SDK, which can be found on the Microsoft Developer’s Network (MSDN).