Using C libraries

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laughlin, Joseph V

    Using C libraries

    Has anyone had any difficulties using C libraries / data structures with
    python? Are there any things I need to be aware of?

    Joe Laughlin
    Phantom Works - Integrated Technology Development Labs
    The Boeing Company




  • Larry Bates

    #2
    Re: Using C libraries

    Depends on what you mean by "difficulti es". I've interfaced
    Python with lots of different .DLL libraries. The "tricky"
    part is getting enough information about the proper data
    structures for calling the external functions. Much study
    of struct module is normally required. And you need either
    my DLLInterface code:



    or you can use Thomas Heller's ctypes module:



    Or you can roll your own...

    Larry Bates
    Syscon, Inc.

    "Laughlin, Joseph V" <Joseph.V.Laugh lin@boeing.com> wrote in message
    news:mailman.92 .1083177600.257 42.python-list@python.org ...
    Has anyone had any difficulties using C libraries / data structures with
    python? Are there any things I need to be aware of?

    Joe Laughlin
    Phantom Works - Integrated Technology Development Labs
    The Boeing Company





    Comment

    Working...