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

2010-02-22 Thread Pablo Bianucci
Hi Andrew!

On Wed, 17 Feb 2010, Andrew MacIntyre wrote:

 piezo1.GetMaxTravel(APTPiezoLib.CHAN1_ID, pointer(tr))

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

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

You can chalk it up to my mind working more in C Mode that Visual Basic 
Mode, I guess. :-)
Both seem to work and the first one is the one that popped up initially 
in my mind.

Bye  Good Luck!

Pablo B.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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