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.
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to