Exception raise when a DDE errpr occures.
| 116 | Uninitialize = get_winfunc("user32", "DdeUninitialize", BOOL, (DWORD,)) |
| 117 | |
| 118 | class DDEError(RuntimeError): |
| 119 | """Exception raise when a DDE errpr occures.""" |
| 120 | def __init__(self, msg, idInst=None): |
| 121 | if idInst is None: |
| 122 | RuntimeError.__init__(self, msg) |
| 123 | else: |
| 124 | RuntimeError.__init__(self, "%s (err=%s)" % (msg, hex(DDE.GetLastError(idInst)))) |
| 125 | |
| 126 | class DDEClient(object): |
| 127 | """The DDEClient class. |