How to access MFC classes in Python using SWIG ?
John J. Lee
jjl at pobox.com
Tue Dec 16 14:38:42 CET 2003
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
I'd guess that looking into how win32all does it, and copying that and
integrating your stuff with it would be the easiest way to go. I
don't think it uses SWIG.
More information about the Python-list