I have zero experience with c++ but reasonable experience with python. I am trying to load a dll library and proceeded as follows, according to instructions in another thread:
import ctypes my_dll = ctypes.WinDLL ("c:\\whatever\\whatever.dll") the response I get is:
Traceback (most recent call last): File "C:\Users\xxx\Anaconda3\lib\site- packages\IPython\core\interactiveshell.py", line 3035, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-6-8b21ed13fe33>", line 1, in <module> mydll = cdll.LoadLibrary(dll_path) File "C:\Users\xxxx\Anaconda3\lib\ctypes\__init__.py", line 429, in LoadLibrary return self._dlltype(name) File "C:\Users\xxx\Anaconda3\lib\ctypes\__init__.py", line 351, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application The OS is 64-bit Windows 10. Could anyone point me to what is wrong?
Thanks.