[python-win32] Release public header and lib files with pywin32 release?

Enzhou Wang ewang at esri.com
Fri Aug 13 22:55:33 CEST 2004


Hello, 

Thanks Mark for the excellent work on PythonCOM. I'm interested in using
Python with ArcGIS, which has a huge collection of COM objects. Most of them
do not implement Idispatch. I've experimented implementing python extensions
the same way as the MAPI/Shell examples in pywin32 com source code. To do
this, you need to include a few header files like "PythonCom.h" and link to
pythoncom.lib and pywintypes.lib. I cannot seem to find an easy way to get
the lib files and go ahead to build pywin32 locally. With a little struggle,
I actually can use most of the Iunknown based com objects, and can even
generate pure python wrappers to hide the details of CreateInstance,
QueryInterface, etc.. The whole thing works really well, all because of
PythonCOM. But when I try to generate python extensions for a particular
win32all version (build 151), I cannot seem to get the correct source code
for b151 (not all source files are tagged b151). I want build 151 because
ArcGIS version 9 comes with python 2.1 and win32all 151 (there's some
functionality using python). When I tried using some early version whenever
b151 is missing, the python extensions built does not work with the
*released* win32all 151...

If Mark can release the public header and lib files with each pywin32
release, it will really help anyone trying to use Python to work with COM
objects not implementing Idispatch. It can be put in pywin32 install just as
Python installs its header and lib files, or a separate install for those
interested. It will make extending PythonCOM so much easier.

Best regards,
Enzhou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20040813/d16fedd4/attachment.html


More information about the Python-win32 mailing list