I created MathFuncsDll.dll from an example MSDN DLL , and the working caller .cpp worked fine. Now, trying to load this into IPython using ctypes, for example
import ctypes lib = ctypes.WinDLL('MathFuncsDll.dll')
located in the correct folder, gives
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 28: ordinal not in range(128)
Similarly in the Python shell, this gives
WindowsError: [Error 193] %1 is not a valid Win32 application
What should i change? Hmm, could it be Win 7 64bit vs 32 bit DLL or something like that? I will check back later when I have time again.
python dll ctypes windowserror
Konsta
source share