Previous: Step 3 - Object Implementation, Up: The COM object implementation [Contents][Index]

#### 5.1.4 Step 4 - Class Factory Implementation

The implementation of the class factory for any COM object will be identical to the implementation found in the example files `gnatexample-factory.ad?`. The only difference will be in the function `IClassFactory_CreateInstance` where the function used to create the COM object will be the one created in Step 3.