[python-win32] DDE problem
BBands
bbands at gmail.com
Fri Dec 1 19:34:07 CET 2006
Hello all,
Upgraded from 2.4.2 to 2.4.4 and build 205 to 210 this morning. The
following snippet worked before the upgrade, but fails now on the
commented line with the following message: "error: The server could
not be created"
import win32ui
import dde
def getQuote(symbol):
"""get a quote from a running instance of eSignal"""
server = dde.CreateServer()
server.Create('eSignalDDE') # fails on this line
conversation = dde.CreateConversation(server)
conversation.ConnectTo("WINROS", "Last")
last = conversation.Request(symbol)
return float(last.split("\0")[0])
a = getQuote("$spx")
print a
Any clues?
jab
--
John Bollinger, CFA, CMT
www.BollingerBands.com
If you advance far enough, you arrive at the beginning.
More information about the Python-win32
mailing list