Sets up the access to the remote application.
DDEConnect ( out tErrCode,
|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.|
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.
For example, given that DDE_Err and hServ are of type longint, the following
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.