System.Win.ObjComAuto.TObjectDispatch

From RAD Studio API Documentation
Jump to: navigation, search

System.TInterfacedObjectSystem.TObjectTObjectDispatch

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.

See Also

Code Examples