dll - python ctypes with dots -
how load module ctypes has dots in name example
mydll.1.0.dll
trying load this
ctypes.cdll.mydll.1.0
gives module not found error
i using python on windows
answer comments:
use ctypes.cdll('mydll.1.0').
if you're fixed on using loader it's ctypes.cdll['mydll.1.0']. note loader caches cdll instance, caches functions. can or bad depending use case , whether other packages want use same dll don't define function prototypes (i.e. restype, argtypes, errcheck, paramflags) equivalently.
Comments
Post a Comment