I have an application that works as DDE client & uses the data it receives to run few animations. This client is installed on Windows server 2012. I need to supply the DDE client application with few variables to run the animations properly.
On the same machine I don't have Microsoft Office installed so I can't use Excel for this job. Any idea how can I create a DDE server that service the required data to the client.
Searching in google has not resulted in clear tutorials on how to implement such this. I have very good programming skills in C/C++. However I need a guideline, recommended APIs, or clear tutorials.
Edit: I need the server & client applications to run on the same machine & same OS.
Thanks
DDE is defined almost entirely in terms of Windows messages, so to create a DDE server, you mostly:
WM_DDE_INITIATE
WM_DDE_ADVISE
orWM_DDE_REQUEST
WM_DDE_DATA
as appropriateWM_DDE_REQUEST
WM_DDE_ADVISE
WM_DDE_UNADVISE
WM_DDE_POKE
messages to accept data from the client (if this makes sense in your case).WM_DDE_TERMINATE
Hmm...there's probably at least one other message that doesn't occur to me at the moment, but that probably covers at least 90% of cases (and at least in my experience, even
WM_DDE_POKE
is fairly unusual).Since you (apparently) have a single, specific client in mind, you can probably trim that back somewhat. For example, it sounds like you probably don't need/want to support warm linking and such, so you probably don't care about
WM_DDE_ADVISE
/WM_DDE_UNADVISE
. Your server can basically just initiate the connection when it receivesWM_DDE_INITIATE
, send data when it receives aWM_DDE_REQUEST
, and shut down when it receives aWM_DDE_TERMINATE
.