I'm trying to port VideoCapture from an extension module to a pure-python module based on comtypes.
I've started by converting the following: hr = CoCreateInstance(CLSID_CaptureGraphBuilder2, NULL, CLSCTX_INPROC, IID_ICaptureGraphBuilder2, (void **)&self->ob_pBuilder); hr = self->ob_pBuilder->SetFiltergraph(self->ob_pGraph); to the following using comtypes: self.graph_builder = CreateObject(CLSID_CaptureGraphBuilder2, CLSCTX_INPROC) self.graph_builder.SetFiltergraph(self.filter_graph) The problem I encounter is the creation of the graph_builder doesn't have any type information, so SetFiltergraph fails. It has no interface, so gets created as an IUnknown. I can find in the SDK the .idl that contains the definition for ICaptureGraphBuilder2 (axextend.idl) and other interfaces I'll need. The docs indicate that the best way to generate the Interface classes is to create a temporary type lib from the IDL. Can you describe or point me to a description of how one would go about creating a temporary type lib? Is it possible that there's already a type lib created for some other purpose lying around, and if so, how would I locate it? Thanks and regards, Jason
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users