Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>ddeexecute()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DDEExecute()
Ask a DDE server to execute commands
------------------------------------------------------------------------------

Syntax
DDEExecute( <hWndServer>, <hWndClient>, <cItem> , [ <lReply> ] ,
            [ <cMsg> ] , [ <cExit> ] )   -->   NIL

Arguments
<hWndServer> is the handle of the server window, e.g. from
DDEStart().

<hWndClient> is the handle of the window stopping the
conversation.

<cItem> is a string specifying the command(s) to be executed.
Each command is supposed to consist of an operation enclosed
in square brackets ("[" and "]").  Each operation is a name,
optionally followed by parameters in parentheses (so they look
rather like function calls).  However, some servers do not use
this syntax, so you need to consult the documentation for the
server you are using.

<lReply> optionally specifies (default .F.) whether to wait
for reply data.

<cMsg> is an optional string specifying the reply expected (if
<lReply> is .T.).

<cExit> is an optional string specifying a reply the server
might send to show it is (forcibly) terminating the
conversation.

Returns
NIL.

Description
This function can be used to send commands to a DDE server.

Note: Getting <cMsg> wrong is likely to prevent things working
properly.

See the source\dde.prg file, and the sample in source\contrib\caret.zip.

Example
DDEExecute( hWndServer, hWndClient, `[open("xxx.xlm")]' )

See Also: DDEGetData() DDERequest() DDEStart()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson