System.Win.ObjComAuto.TObjectDispatch
Delphi
TObjectDispatch = class(TInterfacedObject, IDispatch)
C++
class PASCALIMPLEMENTATION TObjectDispatch : public System::TInterfacedObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Win.ObjComAuto.pas System.Win.ObjComAuto.hpp |
System.Win.ObjComAuto | System.Win.ObjComAuto |
Description
Provides support for late-bound interface calls (Automation functionality).
Use TObjectDispatch to obtain the IDispatch interface of an Automation object (or server). Use IDispatch to invoke a particular method by its dispatch identifier (dispid).
To use TObjectDispatch, you have to define a class that will act as an Automation server. A TObjectDispatch instance is associated with a TObject instance—the Automation server.
Note: Make sure that the compiler generates extended RTTI for the Automation server class. See the $METHODINFO ON directive.