Implementing the Class Factory
The existence of a CLSID available to clients implies that there is a class factory that is capable of manufacturing objects of that class. The server, .DLL or .EXE, associated with the class in the registry is responsible to provide that class factory and expose it to the COM Library to make COM's creation mechanisms work for client. The specific mechanisms to expose the class factory is covered shortly, but first, let's examine how a class factory may be implemented.2.