[python-win32] RE: Can we add 'native COM support' to a 3rd party DLL/OLB

Andrew MacIntyre Andrew.MacIntyre at aba.gov.au
Fri May 23 19:19:47 EDT 2003


> From: Craig Taverner
> Sent: Friday, 23 May 2003 5:50 PM

{...}

> > I came across 1 reference to vtables (C++) based interfaces in the
> > Pythoncom help file, albeit in relation to COM servers, which gives
> > me faint hope this is still feasible.  Lots of reading & code
> inspection
> > still to do...
> 
> Let me know what you find. I also still have hope. I think the system
> the ESRI developers worked on was generic to three languages. 
> We're only
> interested in one, and python is supposed to be easy to extend, so I
> think a relatively simple solution must be possible.

The Pythonwin docs refer to creating native interfaces via SWIG, and 
the Pythonwin CVS contains a tweaked version of SWIG 1.1 for creating 
the MAPI interfaces.

Exactly what the mechanics of doing this aren't yet clear to me, but 
I'm guessing that there must be a reasonable way to convert the type 
library definitions to SWIG .i files.

I'm further hampered by not having access to MSVC (I've been using 
MinGW for the extensions I've done to date, including an Arc ODE 
extension set).

-----------------------------------------------------------------------
Andrew MacIntyre                  \ E-mail: andrew.macintyre at aba.gov.au
Planning & Licensing Branch        \ Tel:   +61 2 6256 2812
Australian Broadcasting Authority   \ Fax:  +61 2 6253 3277
-> "These thoughts are mine alone!" <----------------------------------



More information about the Python-win32 mailing list