Re: [comtypes-users] Passing a VARIANT (array of objects) [SEC=UNCLASSIFIED]

2013-05-05 Thread Andrew MacIntyre
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.aumailto: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.aumailto: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 5356tel:%2B61%202%206219%205356 Communications 
Infrastructure Division
fax:   +61 2 6253 3277tel:%2B61%202%206253%203277 Australian 
Communications  Media Authority
email: andrew.macint...@acma.gov.aumailto:andrew.macint...@acma.gov.au
http://www.acma.gov.au/

From: Luciano Strassacappa 
[mailto:luciano.strassaca...@gmail.commailto:luciano.strassaca...@gmail.com]
Sent: Friday, 3 May 2013 3:57 AM
To: 
comtypes-users@lists.sourceforge.netmailto: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.netmailto: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


Re: [comtypes-users] Passing a VARIANT (array of objects) [SEC=UNCLASSIFIED]

2013-05-02 Thread Andrew MacIntyre
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 Communications Infrastructure Division
fax:   +61 2 6253 3277 Australian Communications  Media Authority
email: andrew.macint...@acma.gov.aumailto:andrew.macint...@acma.gov.au
http://www.acma.gov.au/

From: Luciano Strassacappa [mailto:luciano.strassaca...@gmail.com]
Sent: Friday, 3 May 2013 3:57 AM
To: 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
https://lists.sourceforge.net/lists/listinfo/comtypes-users


Re: [comtypes-users] Problem calling method [SEC=PERSONAL]

2010-02-16 Thread Andrew MacIntyre
 From: Pablo Bianucci
 Now it is as easy (and intuitive, I'd say) as this:
 
 ===
 tr = c_float()
 piezo1.GetMaxTravel(APTPiezoLib.CHAN1_ID, pointer(tr))
 ===

I'm curious as to any reasons to prefer the above instead of

===
tr = c_float()
piezo1.GetMaxTravel(APTPiezoLib.CHAN1_ID, byref(tr))
===

- 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.auhttp://www.acma.gov.au/

If you have received this email in error, please notify the sender immediately 
and erase all copies of the email and any attachments to it. The information 
contained in this email and any attachments may be private, confidential and 
legally privileged or the subject of copyright. If you are not the addressee it 
may be illegal to review, disclose, use, forward, or distribute this email 
and/or its contents.
 
Unless otherwise specified, the information in the email and any attachments is 
intended as a guide only and should not be relied upon as legal or technical 
advice or regarded as a substitute for legal or technical advice in individual 
cases. Opinions contained in this email or any of its attachments do not 
necessarily reflect the opinions of ACMA.

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users