Dispatch interface methods
Methods of a dispatch interface are prototypes for calls to the Invoke method of the underlying IDispatch
implementation. To specify an Automation dispatch ID for a method, include the dispid directive in its declaration,
followed by an integer constant; specifying an already used ID causes an error.
A method declared in a dispatch interface cannot contain directives other than dispid. Parameter and result types
must be automatable. In other words, they must be Byte, Currency, Real, Double, Longint, Integer, Single, Smallint,
AnsiString, WideString, TDateTime, Variant, OleVariant, WordBool, or any interface type.
Dostları ilə paylaş: |