public OleAutomation(OleClientSite clientSite) { if (clientSite == null) OLE.error(OLE.ERROR_INVALID_INTERFACE_ADDRESS); objIDispatch = clientSite.getAutomationObject();
OleAutomation(IDispatch idispatch) { if (idispatch == null) OLE.error(OLE.ERROR_INVALID_INTERFACE_ADDRESS); objIDispatch = idispatch; objIDispatch.AddRef();
 public OleAutomation(OleClientSite clientSite) {	if (clientSite == null) OLE.error(OLE.ERROR_INVALID_INTERFACE_ADDRESS);	objIDispatch = clientSite.getAutomationObject();	int[] ppv = new int[1];	int result = objIDispatch.GetTypeInfo(0, COM.LOCALE_USER_DEFAULT, ppv);	if (result == OLE.S_OK) {		objITypeInfo = new ITypeInfo(ppv[0]);		objITypeInfo.AddRef();	} }