????

Your IP : 216.73.216.203


Current Path : C:/opt/pgsql/pgAdmin 4/python/Lib/site-packages/win32/Demos/dde/
Upload File :
Current File : C:/opt/pgsql/pgAdmin 4/python/Lib/site-packages/win32/Demos/dde/ddeclient.py

# 'Request' example added jjk  11/20/98

import dde
import win32ui

server = dde.CreateServer()
server.Create("TestClient")

conversation = dde.CreateConversation(server)

conversation.ConnectTo("RunAny", "RunAnyCommand")
conversation.Exec("DoSomething")
conversation.Exec("DoSomethingElse")

conversation.ConnectTo("RunAny", "ComputeStringLength")
s = "abcdefghi"
sl = conversation.Request(s)
print('length of "%s" is %s' % (s, sl))