Help with C extensions under VC6 / WinXP and Python 2.4
Scott
scott+python at CS.Princeton.EDU
Wed Feb 16 21:45:50 EST 2005
John Machin wrote:
> On Wed, 16 Feb 2005 20:57:18 -0500, Scott
> <scott+python at CS.Princeton.EDU> wrote:
>
>
>>I've installed Python 2.4 under WinXP and am attempting to
>>create an extension module using the steps outlined here:
>>http://python.org/doc/2.4/ext/win-cookbook.html
>>
>>I'm specifically trying to perform step 6. Creating a brand
>>new project using VC6.
>>
>>The trouble I have is that there are no PC or PCbuild
>>subdirectories in C:\Python24. Where do I find these?
>
>
> As the quoted URL says (2nd para):
> """
> To build extensions using these instructions, you need to have a copy
> of the Python sources of the same version as your installed Python.
> [snip]
> The example files described here are distributed with the Python
> sources in the PC\ example_nt\ directory
> """
>
> i.e. you have to download a copy of the Python source distribution.
Since I had an include directory, I assumed (incorrectly) that
I already had the sources. Thanks for the reiteration -- it's
what I needed.
>
>
>>Ultimately, what I want to do is interface some Python
>>code with a DLL that controls an A/D board. I expect
>>I'll need to write an extension module to act as a shim
>>between this DLL and the Python code.
>
>
> Possibly not; check out the ctypes module --
> http://starship.python.net/crew/theller/ctypes/
Thanks for the pointer. This looks promising.
Scott
More information about the Python-list
mailing list