Hey everybody.
What is the simplest and fastest way (if any exist at all) to import a C dll into Python?
thx!!
Hey everybody.
What is the simplest and fastest way (if any exist at all) to import a C dll into Python?
thx!!
Standard Python, version 2.5 and above, has the ctypes module for dynamically linking and accessing shared libraries. This module is unfortunately not available for PyS60. The only way to access external DLLs from PyS60 is to write a Python extension wrapper for each DLL in C++. PyS60 documentation has a chapter for explaining the basics: Chapter 9.2: Extending Python for S60.
EDIT: There is ctypes for PyS60. It requires OpenC and a bunch of other packages installed, so it might not qualify as "simple".
Please give more details which DLL you are importing and we can give better answers.
See this tutorial:
http://discussion.forum.nokia.com/fo...d.php?t=153062
Mikko Ohtamaa
http://mfabrik.com
http://blog.mfabrik.com
Mikko Ohtamaa
http://mfabrik.com
http://blog.mfabrik.com
Mikko Ohtamaa
http://mfabrik.com
http://blog.mfabrik.com