DDE issues
Hi there,
I've been finding my way around DDE interface in LW having little luck.
It persistently refuses to request data from DDE servers I am running.
In order to do that one has to create a DDE conversation object which goes something like this:
I've been finding my way around DDE interface in LW having little luck.
It persistently refuses to request data from DDE servers I am running.
In order to do that one has to create a DDE conversation object which goes something like this:
(require "dde")
(setf conn (win32:dde-connect "MT4" "TIME"))
which basically means "establish a connection with a DDE server named "MT4" with a topic called "TIME"" which seems to work fine, a conversation object is returned to that. Now if one tries to request some data via this conversation by means of
(win32:dde-request conn string)
where string is naturally the name of the item whose value we are trying to fetch here a fairly weird error is produced:
Error: DDE: Unable to establish conversation for service "MT4", topic :SYSTEM
1 (abort) Return to level 0.
2 Return to top loop level 0.
(setf conn (win32:dde-connect "MT4" "TIME"))
which basically means "establish a connection with a DDE server named "MT4" with a topic called "TIME"" which seems to work fine, a conversation object is returned to that. Now if one tries to request some data via this conversation by means of
(win32:dde-request conn string)
where string is naturally the name of the item whose value we are trying to fetch here a fairly weird error is produced:
Error: DDE: Unable to establish conversation for service "MT4", topic :SYSTEM
1 (abort) Return to level 0.
2 Return to top loop level 0.
which looks like the environment is trying to establish a new conversation (for an unknown reason, since we have supplied one already), plus does it with a wrong topic, not the originally supplied "TIME" but :SYSTEM. The traceback looks even stranger than that (refer to the screenshot) because it is not at all obvious where the topic value gets replaced.
Yet I tried to mess around with DDE earlier on using an Excel server (I can't recheck it now since I don't have Excel at home, I'll try it again tomorrow) and did not have any similar issues and it worked by most part.
Does anyone have any experience with LW DDE module here on the list?