Win32 Extenstion modules How To ???

Courageous jkraska1 at san.rr.com
Thu Apr 26 19:17:52 EDT 2001


Re: EXTENSIONS

>> Does anyone have any complete examples allow with how
>> to set up MS VC++ 6

In your Python distribution, go to the "pc" directory and then
goto the "example_nt" directory. There is a Visual C++ example
of a simple module there. You'll want to make certain that your
include path reflects the python "Include" directory, and that your
Library path includes the location of the python[X].dll and .lib.

Once you work past this trivial example, if you desire to impliment
a full Python object, take a look at objects/xxobject.c. You will
also eventually benefit from looking at the implementations of
listobject.c and dictobject.c, although don't start with these.

Lastly, __Essential Python Reference__ has an outstanding
section on Extending and Embedding. I found it a very useful
learning tool..

C//




More information about the Python-list mailing list