RAD Studio |  |

Controlling an Automation Server Using a Dual Interface
See Also
Collapse All

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

Copy Code

    var
      MyInterface : _Application;
    begin
      MyInterface := CoWordApplication.Create;
      MyInterface.DoSomething;

Copy Code

    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

Controlling an Automation Server Using a Dispatch Interface

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!