L’interface de VDS Renaissance est disponible en plusieurs langues. La documentation officielle est maintenue en anglais afin de garantir une référence unique, cohérente et toujours à jour.

Creating DDE Servers

VDS can be used to create DDE Server applications. This is done by adding the DDESERVER style to the DIALOG CREATE command for the application main window. Client applications must first link to the DDE topic of the server application.

The default DDE topic name is "System" but this can be changed by specifying a different name after the DDESERVER style. VDS DDE servers can only support one DDE topic.

DDE client applications can send macro commands for the server to execute using the DDE EXECUTE command. When the server receives a macro command, a DDEMACRO event is generated.

The server must respond to this event by using the @DDEMAC() function to obtain the text of the macro, and then processing the macro text.

Client applications can also send data to the server using the DDE POKE command, specifying the name of the DDEITEM dialog element as a parameter to the command. When this occurs, the server receives a <name>POKEDATA event, where <name> is the name of the dialog element that received the data. The server may read the data from the dialog element using the @DLGTEXT() function.

The server may write data to a DDEITEM dialog element using the DIALOG SET command. Client applications can then read the data from the server using the @DDEITEM() function, specifying the name of the dialog element as an argument.

See also: