Just following up from what Tim said: > However, the error message in Python is often cryptic such as a simple > "Exception occurred" with the error code.
When DISP_E_EXECEPTION occurs, the object generating the error fills the data that comes back in the extra tuple. This information has the capability to carry extra message text, but as you have seen, most apps don't bother. If all you have is the error code (like the -2147467259 Tim mentioned), you can use win32api.FormatMessage() to get the text: >>> win32api.FormatMessage(-2147467259) 'Unspecified error\r\n' >>> Which is the "official", but unhelpful english text for E_FAIL. Obviously though, these numbers can't carry application specific information - which is what that extra tuple is used for in the first place. Cheers, Mark _______________________________________________ python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
