Windows dll example?

Tim Peters tim.one at comcast.net
Mon Dec 16 16:35:57 EST 2002


[Jive Dadson]
> I need to make a Python extension using MS VC++, preferably using
> a dll.  I've googled around and found lots of instructions on how
> to do it, some apparently clearer than others.  But as a typical
> lazy programmer, what I really want is a small to medium size
> working VC++ project (.dsp) in a workspace (.dsw) that I can use
> as an example.  There must be plenty around.  Can you think of a
> good one that I can download from the net?

Exactly what you're looking for can be found in the Python source
distribution.  Get that, unpack it, and navigate to

    PC\example_nt\readme.txt

The C source and MSVC project files also live in that directory.

Note that the PCbuild directory contains MSVC project files for building the
Windows Python distribution, and several of those build DLLs too.





More information about the Python-list mailing list