To provide a LispWorks application with a DDE server, follow the following three steps.
foo-server
and it has the service name "
FOO
":
(define-dde-server foo-server "FOO")
bar
, which takes a string as an argument, and prints this to the standard output. For convenience, the system topic is used, though usually it is better to define your own topic.(define-dde-server-function (bar :topic :system)
:execute
((x string))
(format t "~&~s~%" x)
t)
foo-server
using start-dde-server.
(start-dde-server `foo-server)
This function returns the server object, which responds to requests for conversations with the service name "
FOO
", and accepts execute transactions for the function
bar
in the "
System
" topic.