COM

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Module

Classes and functions to deal with COM components (i.e. ActiveX Controls and Automation).

Methods
FreeVARIANT StringFromIID
IIDFromString VARIANTToRBVariant
RBVariantToVARIANT

Notes

Refer to the Microsoft COM documentation for full details on all classes, constants, structures, etc. used by COM.

Classes

Each class is described in its own section:

Name Super Class Description
IUnknown The common interface supported by all COM objects
IDispatch IUnknown The common interface exposed by Automation servers
IEnumVARIANT IUnknown This interface provides a way to enumerate a collection of variants
IPicture IUnknown This interface manages a picture object and its properties. Get the details here.
COMException RuntimeException Raised when a COM exception is encountered

Constants

Result

Class Constant Description
S_OK Result returned without error.
S_FALSE Result returned with an error.

Invoke

These constants can be passed as flags to the IDispatch.Invoke method:

Class Constant Description
DISPATCH_METHOD The member is invoked as a method. If a property has the same name, both this and the DISPATCH_PROPERTYGET flag may be set.
DISPATCH_PROPERTYGET The member is retrieved as a property or data member.
DISPATCH_PROPERTYPUT The member is changed as a property or data member.
DISPATCH_PROPERTYPUTREF The member is changed by a reference assignment, rather than a value assignment. This flag is valid only when the property accepts a reference to an object.

Structures

Used for a variety of COM calls. Refer to Microsoft's documentation for details.

COM.DISPPARAMS
COM.EXCEPINFO
COM.GUID
COM.SAFEARRAY
COM.SAFEARRAYBOUND

See Also

COMException exception