How to access MFC classes in Python using SWIG ?

Brian Kelley bkelley at wi.mit.edu
Wed Dec 17 16:49:27 CET 2003


John J. Lee wrote:
> harry_chillboy at rediffmail.com (Harish) writes:
> 
> 
>>I am using Python2.3 version with SWIG-1.3.19 to access C++ interface
>>provided by a DLL.
>>Some of its function returns MFC class objects like CString , CMap. I
>>tried to generate wrapper for these classes using SWIG by including
>>respective header files in .i file.
>>But it doesn't work. Swig reports hundreds parsing errors in MFC's
>>file.

the ctypes package may do what you want
http://starship.python.net/crew/theller/ctypes/tutorial.html

Brian





More information about the Python-list mailing list