Using an MFC .dll file with Python 3.2
Question: I am currently planning to access my MFC Dialog based application's .dll file
using Python. I am new to Python and have the latest version of Python
installed i.e. 3.2. I have installed PythonWin as well, but not really sure if
it would be useful or not. I have understood like the basics of using python
with the help of [ctypes](http://docs.python.org/py3k/library/ctypes.html). In
my dll file, I have two functions:

    
    
    double BoxArea(double L, double H, double W);
    
    double BoxVolume(double L, double H, double W);
    

and I have used the extern dllimport command to access these in my mfc dialog
application.

    
    
    extern "C" __declspec(dllexport)void BoxProperties(double Length, double Height,
                                        double Width, double& Area, double& Volume);
    

All that works fine when trying to access with another mfc program. Now, I am
trying to access those two functions using Python. Could anyone suggest me how
should I go about and what commands would directly let me access it?

Many thanks in advance.


Answer: I think [this](http://oreilly.com/catalog/pythonwin32/chapter/ch20.html)
should give you some idea on what you are trying to do. Hope this helps.

