WIN32API GetLastError()

Eduard Hiti eduard.hiti at t-online.de
Wed Jun 14 15:33:01 EDT 2000


Ok, I accidentally mailed my previous message directly to Mark Hammond via
email, and he replied by email. For anybody interested, I will break
netiquette and post his message here for clarification:

>The problem is that Python has printed a result between the CreateEvent()
>call, and the GetLastError() call.  The GetLastError() of zero almost
>certainly relates to the file IO used for either reading the next command,
>or printing the result.
>
>If I put the following code in a .py file:
>
>import win32event, win32api
>a = win32event.CreateEvent(None, 0, 0, "Test")
>b = win32event.CreateEvent(None, 0, 0, "Test")
>print win32api.GetLastError()
>
>When I run it, it yields:
>183
>
>Mark.

Tried it, worked!!

Bye,

    Eduard Hiti






More information about the Python-list mailing list