Do you know what the target function is expecting to receive packaged in the
VARIANT? And what are you trying to pass into it?
If comtypes' default conversions aren't working for you, you should be able to
instantiate a VARIANT directly and populate it manually - you may wish to read
the source for the VARIANT structure in automation.py (imported as
comtypes.automation) to understand the implementation.
-------------------------> "These thoughts are mine alone!" <---------
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
fax: +61 2 6253 3277 Australian Communications & Media Authority
email: andrew.macint...@acma.gov.au<mailto:andrew.macint...@acma.gov.au>
http://www.acma.gov.au/
From: Luciano Strassacappa [mailto:luciano.strassaca...@gmail.com]
Sent: Saturday, 4 May 2013 5:19 AM
To: comtypes-users@lists.sourceforge.net
Subject: Re: [comtypes-users] Passing a VARIANT (array of objects)
[SEC=UNCLASSIFIED]
Andrew,
Thanks for posting but already tried and I couldn't find the proper conversion
Luciano
2013/5/2 Andrew MacIntyre
<andrew.macint...@acma.gov.au<mailto:andrew.macint...@acma.gov.au>>
Yes - see
http://starship.python.net/crew/theller/comtypes/#converting-data-types for
some notes about this.
-------------------------> "These thoughts are mine alone!" <---------
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356<tel:%2B61%202%206219%205356> Communications
Infrastructure Division
fax: +61 2 6253 3277<tel:%2B61%202%206253%203277> Australian
Communications & Media Authority
email: andrew.macint...@acma.gov.au<mailto:andrew.macint...@acma.gov.au>
http://www.acma.gov.au/
From: Luciano Strassacappa
[mailto:luciano.strassaca...@gmail.com<mailto:luciano.strassaca...@gmail.com>]
Sent: Friday, 3 May 2013 3:57 AM
To:
comtypes-users@lists.sourceforge.net<mailto:comtypes-users@lists.sourceforge.net>
Subject: [comtypes-users] Passing a VARIANT (array of objects)
Hi,
I need to pass object type (VARIANT) is that possible using comtypes?
Thanks
--
Luciano Strassacappa
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy all
copies of the original message.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net<mailto:comtypes-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/comtypes-users
--
Luciano Strassacappa
011 9 9992-1272
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy all
copies of the original message.
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users