Hi all ,

Today I weak up and just came back to my code ..

I finally got a good solution for this problem :))))
and here it is ...

......activeComponent=VARIANT(pythoncom.VT_VARIANT | pythoncom.VT_NULL,None)


regards,
Matteo
Il 20/02/2011 23:24, Mark Hammond ha scritto:
On 21/02/2011 7:42 AM, Matteo Boscolo wrote:

I did some other search I try to pass a object() to the activeComponent
but the active component need a COM VARIANT..

there is any way to create a null COM VARIANT ?
or to pass a c++ NULL equivalent object ?

win32com automatically creates a variant - if you pass None, it will create a variant with VT_NULL, and if you pass pythoncom.Empty, it will pass a variant with VT_EMPTY. If Empty also doesn't work, I'm afraid I'm out of ideas...

Cheers,

Mark.



-----
Nessun virus nel messaggio.
Controllato da AVG - www.avg.com
Versione: 10.0.1204 / Database dei virus: 1435/3455 - Data di rilascio: 20/02/2011




_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to