DDEOpenConversation
Previous  Top  Next

Prototype

IntHandle:=DDEOpenConversation(strPath,strServer,strTopic) 

Description

It opens a conversation channel with a DDE server.

Parameters

StrPath: string that contains the complete path of the executable of the application in case the application in not active.
StrServer: string that contains server name, usually correspondent at the name of the executable without extension.
StrTopic: string that contains conversation argument, usually must use 'system'.

Returned value

IntHandle
: integer value that makes the handle to be used in the other functions of the same type.

Notes

None.

Example

//open a conversation using winword.exe program
HandleDDE:=DDEOpenConversation('c:\programmi\microsoft\winword.exe','winword','system');

//send a command macro to the server
DDEExecute(HandleDDE,'[Open("c:\documents\test.doc")]');

// It closes the conversation
DDECloseConversation(HandleDDE);