Programming Guide



sm_dde_client_connect_cold

Creates a cold DDE link to a server

#include <smmwuser.h>
int sm_dde_client_connect_cold(char *server, char *topic, char *item, char *field);

server
The server application's name—for example, WINWORD

topic
The server topic, typically the file name of the spreadsheet or document—for example, SALES.DOC

item
The server item—for example, DDE_LINK1

field
The name of the widget to receive server data.

Environment

Windows

Returns

Description

sm_dde_client_connect_cold creates a cold DDE link between a widget and a server application. Given a cold link, the server does not notify the client Panther application of changes to linked data. The application must explicitly request data updates by calling sm_dde_client_request.

Before creating a link, Panther must be enabled as a client. Panther checks whether a connection to the server application already exists—for example, another open screen has a link to this server. If no connection exists, Panther attempts to establish one. After Panther verifies or establishes a connection, it creates a cold link between the widget and the specified topic and item.

This function can succeed only if the server application is already running; otherwise Panther posts an error message. If the link cannot be created, Panther posts an error message.

See Also

sm_dde_client_request