Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > DSS Supplement > Dynamic Data Exchange > Using Vensim as a DDE Client

int VEFCC vdde_initiate(char *servname,char *topic) ;

Scroll Prev Top Next More

servname -a string containing the name of the server application as in "Excel"

topic - a string naming a topic for the server.  Often a filename as in "VDDEEXT.XLS"

return value - returns a non negative channel id on success or -1 on failure.  The returned channel id should be used in all subsequent calls to the vdde... functions.

The vdde_initiate function is  used to begin a DDE conversation.  This is normally called from the function simulation_setup. servname is usually the name of an application and topic the name of a file, but the actually meaning of the parameters depends upon the DDE server you are using.