Hi
there
What
work needs to be done to implement this? Is it only a case of creating the
Python code that will create the Python wrappers (around the pythoncom module, I
presume), or does the pythoncom module need to be extended also? If it is
only a case of creating some Python wrapper code, I may have a go at it.
If I must write some contorted C++ code (with a good shot of black magic
included) I don't think I'm up to the task.
Regards
Etienne
-----Original Message-----
From: Mark Hammond [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 1:00 PM
To: Etienne Labuschagne; [EMAIL PROTECTED]
Subject: RE: win32com
From: Mark Hammond [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 1:00 PM
To: Etienne Labuschagne; [EMAIL PROTECTED]
Subject: RE: win32com
This doesn't work quite yet. The code you see relating to the vtables allows you to _implement_ these COM objects, but not call them. This work will probably happen over the next few months (or quicker if someone beats me to it [Please!])Mark.-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Etienne Labuschagne
Sent: Tuesday, 31 July 2001 7:41 AM
To: '[EMAIL PROTECTED]'
Subject: win32comHi all,I hope this is the correct mailing list (can't find a win32com list - although it seems there is one - to subscribe to on the Activestate website at http://listserv.activestate.com/mailman/mysubs)How do I use the IUnknown interfaces of COM objects? The generated wrapper file created by makepy creates a nice wrapper for the default IDispatch interface, but none for the IUnknown (that I can find). There are however variables for the IUnknown interfaces in the form:IMyObject_vtables_dispatch_ = 0IMyObject_vtables_ = [(long list of methods and properties with some other cryptic values)]The CLASS_ID can be found in a dictionary named VTablesNamesToCLSIDMapHow do I use the above to generate a wrapper to the above interface that I can use. It seems as if similar values are plugged into the DispatchBaseClass object to create a wrapper for IDispatch interfaces, but I don't know how (or where) to plug these variables into to create a wrapper for the IUnkown interfaces. I don't know much about COM so the answer may be obvious and easy, but I can't figure it out!I have been able to use the DispatchBaseClass derived wrappers and would like something similar for the IUnknown interfaces.ThanksEtienneP.S. If this is not the correct list , please point me to a place where I can subscribe to the correct one!