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.<br>
<br>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 example.<br>
<br><div class="gmail_quote">On Sat, Mar 15, 2008 at 12:54 PM, Mark Hammond <<a href="mailto:skippy.hammond@gmail.com">skippy.hammond@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Just to clarify:<br>
<div class="Ih2E3d"><br>
> HRESULT SomeFunction( [in] GUID* pGuid, [out, retval, iid_is(pGuid)]<br>
IUnknown** ppUnknown);<br>
<br>
> win32com says that it needs a VT_RECORD in order to pass the GUID<br>
information<br>
> to the COM. But from previous email exchanges I can't just deifne some<br>
GUID<br>
<br>
</div>My understanding is that the IDispatch implementation of this method<br>
declares that it wants a VT_RECORD - which win32com is trying to comply<br>
with.<br>
<br>
When I get back home, my approach will be to simply try and repro the issue<br>
in the win32com test suite, which will at least give me a clearer picture of<br>
what is happening. If Kevin could take some steps towards this it would<br>
help.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Mark<br>
<br>
</font></blockquote></div><br>