DdeInitiate Procedure

Establishes a conversation with a DDE server application that supports the specified service name and topic name.

Syntax

[ hConv = ] DdeInitiate ( sService, sTopic )

The DdeInitiate procedure syntax has the following parts:

 

Name

Type

Description

hConv

AHandle

OLE_Handle of the DDE conversation

sService

Val BString

Service name

sTopic

Val BString

Topic name

Comments

Returns 0 if the conversation was not established. The server application that supports the service and topic should already be running. The WinExec procedure can be used to start an application.

Example

hConv=DdeInitiate("EXCEL", "SHEET1")

If hConv = 0 Then

Abort

Endif

See Also

DdeExecute, DdePoke, DdeRequest, DdeTerminate, DdeTimeout