extending python with a C-written dll

Diez B. Roggisch deetsNOSPAM at web.de
Mon Dec 20 13:15:52 EST 2004


> and look at the expected result .. it is far simpler from the python
> side view

But you have to do all the C-Work! 

> 
> I think ctype is uselful when dealing with dll you're not the author of

It is useful, if you don't want to write an extension for the extra work
that is needed for that - for example if you are missing a C compiler.

>  >> error: Python was built with version 6 of Visual Studio, and
> extensions need to
> be built with the same version of the compiler, but it isn't installed.

How do you expect to be able to write your own extension if you don't have
the environment to do so in the first place? that error has nothing to do
with python itself, but with you not having installed the right compiler.
THe same problem will arise building your own extension.

Others suggested trying the ctypes binary installer. Do so.
-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list