I created the MathFuncsDll.dll from MSDN DLL example and running the calling .cpp worked fine. Now, trying to load this in IPython with ctypes like
import ctypes
lib = ctypes.WinDLL('MathFuncsDll.dll')
being in the correct folder yields
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 28: ordinal not in range(128)
Similarly in Python shell this yields
WindowsError: [Error 193] %1 is not a valid Win32 application
What should I change? Hm, it might be Win 7 64bit vs. some 32bit dll or something right? I'll check later when I've time again.