[python-win32] Embedded Python and multithreading

2008-06-25 Thread thorsten riesberg
Hi all, can anybody explain me why the following code is not running: // #include "stdafx.h" #include #include #include #include "Python.h" DWORD WINAPI Callback1( LPVOID lpvData){ PyObject *pName, *pModule, *pDict, *pFunc, *pValue; PyThreadState* tcur = PyThreadS

Re: [python-win32] FireEvent : comtypes work but win32com fails, why?

2008-06-25 Thread Mark Hammond
> I do not know where you see the VT_VARIANT. > > Here is the IDL defn: > > [id(0x80010452)] > VARIANT_BOOL FireEvent( > [in] BSTR bstrEventName, > [in, optional] VARIANT* pvarEventObject); > > and the comtypes wrapp

Re: [python-win32] FireEvent : comtypes work but win32com fails, why?

2008-06-25 Thread Thomas Heller
Mark Hammond schrieb: > Thomas: >> Mark Hammond schrieb: >> >> > In summary, there are one big problem and one minor problem. The >> >> > first >> >> > is about pywin32's inability to pass FireEvent's second argument. >> > >> > I can't explain that :( I've stepped through the code, and it seems >>

Re: [python-win32] FireEvent : comtypes work but win32com fails, why?

2008-06-25 Thread Mark Hammond
Thomas: > Mark Hammond schrieb: > >> > In summary, there are one big problem and one minor problem. The > >> > first > >> > is about pywin32's inability to pass FireEvent's second argument. > > > > I can't explain that :( I've stepped through the code, and it seems > > we are passing a VT_VARIANT

Re: [python-win32] FireEvent : comtypes work but win32com fails, why?

2008-06-25 Thread Thomas Heller
June Kim schrieb: > IE's FireEvent works with a single argument, for example, > FireEvent("onKeyUp"). However, it doesn't work with two arguments : > FireEvent("onKeyUp",event). > > But It works without a problem with comtypes. > > See the following example to reproduce and compare: > > > file:

Re: [python-win32] FireEvent : comtypes work but win32com fails, why?

2008-06-25 Thread Thomas Heller
Mark Hammond schrieb: >> > In summary, there are one big problem and one minor problem. The >> > first >> > is about pywin32's inability to pass FireEvent's second argument. > > I can't explain that :( I've stepped through the code, and it seems we are > passing a VT_VARIANT containing a VT_BYREF

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-25 Thread Mike Driscoll
Mark, fter upgrading to 211, I am getting an import error on my wx module. Are these tied together in some weird way? Not that I can think of, and build 211 didn't add any funky new import tricks or anything. However, build 211 is packing the MFC DLL now, so *that* could be related - try