This method creates an instance of a server component. For more information, see the CreateObject method of the Server object.
HRESULT CreateObject(
BSTR bstrProgID, |
//binary string that contains the progID of the component |
IDispatch ** ppDispObject |
//pointer to an IDispatch interface pointer |
); |