i have to seperate all the performance killers into a dll. and its possible to read this dll. but how to i send any information from python into this dll?
While I’ve not used ctypes on Windows, I know that with .so (Linux) and .dylib (Mac) libraries, you need to need to explicitly set up function prototypes to ensure proper conversion. I’m gonna go out on a limb and guess that Python is sending your arguments as int64 rather than int32.
Well you can use swig or boost.python or the-thing-panda-uses-too-and-i-currently-remember-its-name (EDIT: its called interrogat). Of course you can do everything using ctypes but i guess the “fencier” stuff is easier done with on of these bindings. I.e. for boost.python the “hardest” thing is to download and compile boost itself (which can be done by a simple bootstrap + bjam). The usage then is very easy: short examples spieleprogrammierer.de/index … tID=185452 .