Hi Pythoneers! I have some (obviously basic) problems using DDE in order to communicate with a commercial application called APIS that I use at work. Since I am new to DDE I really don't have a clear understanding of what I need to do to make everything work. I got some help from various examples I found on the internet, however I am hitting the wall now and can't get any further without some help.
I have done the following: >>> import win32ui >>> import dde >>> server = dde.CreateServer() >>> server.AddTopic(dde.CreateTopic('DataLog')) >>> server.Create('PyLogger') In APIS I established a DDE client, where I entered 'DataLog' as the DDETopic and 'PyLogger' as the DDEServer. APIS tells me that the connection status is 'true'. So far so good. Now I would like to create a StringItem that I want to use for data transfer from APIS to Python. In Python I did the following: >>> dde.CreateStringItem('MPVIS') object 'PyDDEStringItem' - assoc is 0115ABD8, vi=<None> In APIS I tried also to create a StringItem called 'MPVIS' that (I assume) should communicate with the StringItem in Python. However, as soon as I add the StringItem in APIS, I recieve the following error message from APIS: ALARM from DDE/VerifyItem »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» Failed to validate new item, MPVIS. Error return. The item is no longer available in the server address space. (c0040007). I played around and tested different things, but it won't work. What has gone wrong? What is needed to make it work? Any ideas? APIS has some further DDE client settings that obviously need to be set. One is the following wiht some description: CmnItemIDPrefix 'Common source ItemId prefix. This string will prefix each item's 'ItemID' when communicating with the DDE server. Items in this module will have names without this prefix in the Apis namespace.' Is there any Prefix with the DDE server in Python? I hope you guys can help me! Thanks a lot in advance! Oliver Tomic MATFORSK - Norwegian Food Research Institute _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython