[Tutor] Calling external DLLs from Python

Colin Campbell ccampbell@ede.org
Fri, 10 May 2002 15:33:26 -0600


I've written a bit of Python to convert a LDIF file into Eudora's address 
book format (the company uses Netscape, which I find too unstable, and our 
IT staff are forgiving about my rebel tendencies).

I've got the routine running reasonably well, using PythonWin so that I can 
browse for source and output files, but I would like to be able to read a 
.NA2 file directly. I think I need to be able to call NABAPI.dll from 
inside Python, but I need some kind soul to tell me whether this is even 
possible, and then second to point me in the direction of some 
documentation/sample source code/newsgroup archive. I've got the Address 
Book API from 
http://developer.netscape.com/docs/manuals/communicator/addrapi.htm and 
just need a pointer to the next step.

TIA

Colin

Windows 2KSP2
Python 2.2
PyhtonWin

--
Simplicity doesn't mean to live in misery and poverty. You have what you 
need, and you don't want to have what you don't need.
-Charan Singh, mystic (1916-1990)