IServer::CreateObject

This method creates an instance of a server component. For more information, see the CreateObject method of the Server Object.

HRESULT CreateObject(

BSTR bstrProgID,

//string that contains the progID of the component

VARIANT * pvarObject

//pointer to a variant that receives the instance

);