The createInstance method of the ActiveXComponent Class contains the following signatures:
createInstance(String c)
createInstance()
createInstance(IUnknown punk)
Creates a new instance of the ActiveXComponent class.
public IUnknown createInstance(String c);
Returns the IUnknown interface of the new object.
c | The CLSID (or ProgID) of the object that is created. The CLSID must be in the form "{xxx...xxx}", where x represents a numeric character between 0 and 9, inclusive. |
Creates a new ActiveXComponent object with the CLSID that was previously set by the constructor or by the setCLSID method.
public IUnknown createInstance();
Returns the IUnknown interface of the new object.
Creates a new ActiveXComponent object using the identity of a pre-existing COM object.
public void createInstance(IUnknown punk);
punk | The identity of the COM object. |