IClassFactory

Class factories used to be the talk of COM+. The most important interface in COM+ was the class factory. Over time, the class factory has lost its popularity because everything that needed to be said about class factories has already been said. Most COM+ frameworks implement a class's IClassFactory class with boilerplate code hidden behind layers of macros.

The IClassFactory interface still remains central to everything that is COM+. When you create COM+ objects, as with calls to the CoCreateInstance() or CoCreateInstanceEx() functions, you are in essence calling the IClassFactory::CreateInstance() method.

You might also have noticed that COM+ DLLs export a function called DllGetClassObject(). COM+ calls this function in order to ...

Get COM+ Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.