Entry
Delphi: DDE: DDEclient/server: Create: How to create a DDE client application?
Oct 5th, 2003 10:11
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 05 October 2003 - 06:57 pm --------------------
Delphi: DDE: DDEclient/server: Create: How to create a DDE client
application?
---
Your 'server' program is e.g. your Excel spreadsheet (as it delivers
the data, e.g. some text)
Your 'client' program is e.g. your Delphi application (as it asks for
the data, e.g. some text)
---
---
[help: source: program: Delphi 7]
You can create a DDE client by adding a DDE client conversation
(TDDEClientConv) component and a DDE client item (TDDEClientItem)
component to a form.
Client applications can poke data (send data to the server) with the
PokeData or PokeDataLines method.
Clients can control the server by running it or sending macros with the
ExecuteMacro or ExecuteMacroLines method.
To create a DDE client:
1. Add a DDE client conversation component (TDDEClientConv) and a DDE
client item component (TDDEClientItem) to a form.
2. Assign the name of the conversation component to the DDEConv
property of the client item component.
---
To establish a link at design time, choose this value from a list of
possible conversations for DDEConv in the Object Inspector.
---
To establish a link at runtime, your application must execute code that
assigns the value to the DDEConv property.
---
---
Example:
The following example links an item component named DDEClientItem1 to a
conversation component named DDEClientConv1:
DDEClientItem1.DDEConv := 'DDEClientConv1';
---
---
Internet: see also:
Delphi: DDE: DDEclient/server: Use: How to use DDE?
http://www.faqts.com/knowledge_base/view.phtml/aid/25159/fid/175
Delphi: DDE: DDEclient/server: Create: How to create a DDE server
application?
http://www.faqts.com/knowledge_base/view.phtml/aid/25164/fid/175
----------------------------------------------------------------------