How to access MFC classes in Python using SWIG ?

H

Harish

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.
Could you give me any directions..

Thank you in anticipation
Harish
 
J

John J. Lee

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.

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.


John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top