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.
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to