extending Python on NT

Gordon McMillan gmcm at hypernet.com
Wed May 24 18:46:55 EDT 2000


Ryan Donahue <ryan at velara.com> wrote:

>I want to write some C extensions, but the docs I have seen do not 
very well
>explain how to do it on NT with Visual C++.  The docs at 
python.org point to a
>url that has the compile.py file, which apparently creates a .dsw 
file for
>you.  However, the url is no longer valid.

Just create a dll, link with the multithreaded dll version of the 
C runtime and export the extension's initxxx function.

It's kind of nice to rename the .dll to .pyd, but not necessary.

- Gordon




More information about the Python-list mailing list