DDEConnect
DDEConnect
Sets up the access to the remote application.
Syntax
DDEConnect ( out tErrCode,
out tServ,
in dde_app,
in dde_topic)
Parameters
tErrCode | A returned error code. It must be a longint. |
tServ | The returned connection handle. It also must be a longint. |
dde_app | A string containing the application name. |
dde_topic | A string containing the topic name. |
Comments
The procedure is supplied with the application name and topic name (usually the document name). DDEConnect assigns a connect handle to the “tServ” variable to be used in subsequent commands. DDEConnect is compiled.
The filename is ddeconn.pgm.
Example
For example, given that DDE_Err and hServ are of type longint:
DDEConnect (DDE_Err, hServ, ‘excel’, ‘sheet1’)
starts a conversation with Microsoft EXCEL. The topic of the conversation is the spreadsheet ‘sheet1’. In this case, EXCEL must be started and ‘sheet1’ opened beforehand.