faqts : Computers : Programming : Languages : Delphi

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 27 people (26%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Delphi: DDE: DDEclient/server: Create: How to create a DDE server application?

Oct 5th, 2003 10:08
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 05 October 2003 - 06:57 pm --------------------

Delphi: DDE: DDEclient/server: Create: How to create a DDE server 
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]

DDE server applications respond to DDE client. Typically, they contain
data that the client application needs to access. Servers simply update
clients.

If you want to handle macros sent by the DDE client, use both a
TDDEServerItem and a TDDEServerConv to create the DDE server. Then, you
can use the OnExecuteMacro event of the DDE server conversation
component to process the macro. Also, use both components if you want
the Name of the DDE server conversation component to be the topic of
the DDE conversation. With only a DDE server item component, the topic
of the conversation is the Caption of the form containing the DDE
server item.

To create a DDE server using only a DDE server item component:

Add a DDE server item (TDDEServerItem) component to a form.

To create a DDE server using a DDE server conversation component:

1.	Add a DDE server conversation (TDDEServerConv) component and a
        DDE server item component to a form.

2.	Assign the name of the conversation component to the ServerConv
        property of the item component.

---

To establish a link at design time, choose this value from a list of 
possible conversations for ServerConv in the Object Inspector.

---

To establish a link at runtime, your application must execute code 
that assigns the value to the ServerConv property.

---
---

Example

The following example links an item component named DDEServerItem1 to a
conversation component named DDEServerConv1:

DDEServerItem1.ServerConv := 'DDEServerConv1';

---
---

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 client 
application?
http://www.faqts.com/knowledge_base/view.phtml/aid/25162/fid/175

----------------------------------------------------------------------