DDE client help

bogdan romocea br44114 at yahoo.com
Tue Jan 18 22:49:54 EST 2005

Dear Python experts,

I'm facing a simple problem which however I'm having a hard time
solving. I have a DDE server with data that changes from time to time.
I need to put together a DDE client that would 'notice' updated values
on the server and append them as a new row in a text file. 

1. How do I connect to the DDE server, and ask for data?
In OpenOffice.org it looks very simple:
I also have some VB code which does the same thing:
Private Sub Command1_Click()
    Text1.LinkTopic = "FPS|TIME"
    Text1.LinkItem = Text4.Text
    Text1.LinkMode = vbLinkAutomatic
I checked the DDE client sample code from
however I got stuck here:
Traceback (most recent call last):
  File "<pyshell#21>", line 1, in ?
error: ConnectTo failed

2. Once I manage to connect to the DDE server, how do I append the new
data values in a text file?

Suggestions and sample code will be highly appreciated.

Thank you,

Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 

More information about the Python-list mailing list