DDEOpenConversation |
Top Previous Next |
Prototype
IntHandle:=DDEOpenConversation(strPath,strServer,strTopic)
Description
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 the name of the executable without the file 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
// opens a conversation using winword.exe program HandleDDE:=DDEOpenConversation('c:\programs\microsoft\winword.exe','winword','system');
// send a command macro to the server DDEExecute(HandleDDE,'[Open("c:\documents\test.doc")]');
// Close the conversation DDECloseConversation(HandleDDE); |