Hi, Is it possible to call function in DLLs using Python for .NET? The reason why I ask is that I'm working with Accessibility assembly. This assembly defines the classes and interfaces for the Microsoft Active Accessibility library which allows a program to inspect the interface object model of other programs at runtime. However, the functions for performing the actual inspection are located in oleacc.dll. These functions return instances of the objects defined in the assembly. I'm pretty new to .NET programming so I might not be explaining this very well. Any help would be greatly appreciated. Thanks, Pete
Peter Parente wrote:
Is it possible to call function in DLLs using Python for .NET?
Knowing what little I know of Python for .NET I would say that you might want to look into ctypes. I have used it very successfully to do call arbitrary functions in DLLs. See http://starship.python.net/crew/theller/ctypes/ for more information. -- Benji York
Is it possible to call function in DLLs using Python for .NET? The reason why I ask is that I'm working with Accessibility assembly. This assembly defines the classes and interfaces for the Microsoft Active Accessibility library which allows a program to inspect the interface object model of other programs at runtime. However, the functions for performing the actual inspection are located in oleacc.dll. These functions return instances of the objects defined in the assembly.
Just to clarify - is oleacc.dll an unmanaged (native) dll or a managed (.NET) dll? Brian Lloyd brian@zope.com V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com
participants (3)
-
Benji York
-
Brian Lloyd
-
Peter Parente