Show: Delphi C++
Display Preferences

Controlling an Automation Server Using a Dual Interface

From RAD Studio
Jump to: navigation, search

Go Up to Writing Client Code Based On Type Library Definitions


After using the automatically generated creator class to connect to the server, you call methods of the interface. For example,

var
  MyInterface : _Application;
begin
  MyInterface := CoWordApplication.Create;
  MyInterface.DoSomething;
TComApplication AppPtr = CoWordApplication_.Create();
AppPtr->DoSomething;

The interface and creator class are defined in the TypeLibName_TLB unit that is generated automatically when you import a type library.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance