Cicode Programming Reference > Cicode Function Categories > Dynamic Data Exchange Functions Introduction > DDEhExecute


Executes a command in an external Windows application. You need to first start a conversation with the DDEhInitiate function, and use the handle returned by that function to identify the conversation.

With this function, you can control other applications that support DDE. Refer to the documentation provided with your other Windows application to determine if DDE is supported and what functions can be called.

This function is a blocking function. It will block the calling Cicode task until the operation is complete.


DDEhExecute(Handle, sCommand)


The integer handle that identifies the DDE conversation, returned from the DDEhInitiate function.


The command that the application will execute.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

DDEhInitiate, DDEhRequest, DDEhPoke, DDEhTerminate, DDEhGetLastError


See DDEhInitiate

See Also

DDE Functions