[python-win32] How to create a com_record?
patter001 at gmail.com
Mon Mar 17 17:18:26 CET 2008
In case it helps, here's the overall description of the COM/app and what how
this function fits: "COM_App" is a typelib (with multiple classes) for
interfacing to an application that controls hardware on a USB port. When
multiple applications are started it becomes impossible for users to write
code for accessing a particular instance of the app, therefore a manager com
"COM_Manager" was created. There are two important level of the COM_Manager.
The first call gets you an object representing the particular application
(Its not really "COM_App" per-se, its just another object that handles that
app). Then there is "SomeFunction" below, it gives you the particular class
for the particular COM_App. That is why it is takes a GUID as a parameter.
I'm still learning about the details of the COM, I guess VT_RECORD is sort
of the standard way of passing any structure information back and forth? My
email access for the first half of the week is fairly limited but I'll still
try to learn my way around the test harness to see if I can create an
On Sat, Mar 15, 2008 at 12:54 PM, Mark Hammond <skippy.hammond at gmail.com>
> Just to clarify:
> > HRESULT SomeFunction( [in] GUID* pGuid, [out, retval,
> IUnknown** ppUnknown);
> > win32com says that it needs a VT_RECORD in order to pass the GUID
> > to the COM. But from previous email exchanges I can't just deifne some
> My understanding is that the IDispatch implementation of this method
> declares that it wants a VT_RECORD - which win32com is trying to comply
> When I get back home, my approach will be to simply try and repro the
> in the win32com test suite, which will at least give me a clearer picture
> what is happening. If Kevin could take some steps towards this it would
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the python-win32