Re: [comtypes-users] Problem calling method

2010-02-16 Thread Pablo Bianucci
Hi Thomas! On Mon, 15 Feb 2010, Thomas Heller wrote: Here is a patch for comtypes that will pass byref(...) or pointer(...) arguments as VT_BYREF variants. It should workfor Pablos and Michaels use cases - also it demonstrates how to access the original object of a byref(..) call: Yup, it

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)) ===

Re: [comtypes-users] Using a COMObject from a client more than once

2010-02-16 Thread Thomas Heller
James Teh schrieb: Hi. In our project, we communicate with Microsoft SAPI 4 speech synthesisers using COM. When we want to speak data, we must provide an object which can receive events. (The IConnectionPoint* interfaces are not used.) Following is a rough, very simplified outline of