OleServer.TOleServer
Contents |
Delphi Information
From OleServer.pas
TOleServer = class(TComponent)
Unit: OleServer
Type: class
Inherited Class Members: OleServer.TOleServer Members
Class Properties: OleServer.TOleServer Properties
Class Methods: OleServer.TOleServer Methods
Class Constructors & Destructors: OleServer.TOleServer Constructors
C++ Information
From OleServer.hpp
TOleServer = class(TComponent)
Unit: OleServer
Type: class
Inherited Class Members: OleServer.TOleServer Members
Class Properties: OleServer.TOleServer Properties
Class Methods: OleServer.TOleServer Methods
Class Constructors & Destructors: OleServer.TOleServer Constructors
Description
TOleServer is the base class for components that represent an imported COM server.
TOleServer is the base class for COM servers that are imported by choosing Component | Import Component from the IDE. TOleServer introduces several properties and methods that manage the connection to a COM server and for invoking its default events.
Descendants of TOleServer expose the properties, methods, and events of the server CoClass. When an application calls one of the TOleServer descendant's methods or sets one of its properties, the component automatically establishes a connection to the COM server. You can also connect explicitly by calling the Connect method.
Do not create instances of TOleServer. TOleServer relies on abstract pure virtual methods to establish and break a connection to the COM server. Instead, use a descendant of TOleServer that wraps the desired server. Numerous TOleServer descendants are provided on the Servers tab of the Component Palette. In addition, you can create your own descendants by importing a server's type library.