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
> 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
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
>>
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
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:
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
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