Creating Python wrapper for DLL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim

    Creating Python wrapper for DLL

    I have a DLL, and a C .h file that exports a bunch of functions from
    the DLL. I would like to create a Python extension module for these
    functions.

    I have read the "Extending and Embedding" documentation in the Python
    2.4 release. I understand how to extend C code for use in Python if I
    have access to the C source code (I think). But...

    Will I be able to create Python extensions for my DLL functions if I do
    not have access to the DLL source code?

  • Lonnie Princehouse

    #2
    Re: Creating Python wrapper for DLL

    ctypes!



    Comment

    • renwei

      #3
      Re: Creating Python wrapper for DLL

      use ctype:



      "Tim" <tvansteenburgh @gmail.com> ????
      news:1119990428 .163115.152440@ g49g2000cwa.goo glegroups.com.. .[color=blue]
      > I have a DLL, and a C .h file that exports a bunch of functions from
      > the DLL. I would like to create a Python extension module for these
      > functions.
      >
      > I have read the "Extending and Embedding" documentation in the Python
      > 2.4 release. I understand how to extend C code for use in Python if I
      > have access to the C source code (I think). But...
      >
      > Will I be able to create Python extensions for my DLL functions if I do
      > not have access to the DLL source code?
      >[/color]


      Comment

      • Tim

        #4
        Re: Creating Python wrapper for DLL

        Thanks guys, I'll take a look!

        Comment

        Working...