accessing dll functions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mxb7642
    New Member
    • Mar 2008
    • 1

    #1

    accessing dll functions

    I'm trying to access a dll through python using ctypes. So far, i can successfully load standard windows dll's such as kernel32 and msvcrt. I can also access methods that they contain. However, when i try to reproduce this with a custom dll, i can only load, but not access the methods. Could this be a permissions issue? I've also seen something about "public interfaces" - would that be of any use?
    Any help will be greatly appreciated. Thank you.
  • Subsciber123
    New Member
    • Nov 2006
    • 87

    #2
    Originally posted by mxb7642
    I'm trying to access a dll through python using ctypes. So far, i can successfully load standard windows dll's such as kernel32 and msvcrt. I can also access methods that they contain. However, when i try to reproduce this with a custom dll, i can only load, but not access the methods. Could this be a permissions issue? I've also seen something about "public interfaces" - would that be of any use?
    Any help will be greatly appreciated. Thank you.
    Use the module dl instead of ctypes. That is a standard python module for dynamically loading libraries cross-platform.

    Comment

    Working...