I'm attempting to call Labview defined functions found in a DLL from Python. I based my code on some sample code I found in a white paper. When I hit an error when trying to load the DLL, I tried using the sample code, and that hit the same errror.
Traceback (most recent call last): File "C:\Users\trevor.apple\Desktop\TestDLL\CallSimpleDLL.py", line 4, in <module> dll = cdll.LoadLibrary("SimpleDLL.dll") File "C:\Python33\lib\ctypes\__init__.py", line 431, in LoadLibrary return self._dlltype(name) File "C:\Python33\lib\ctypes\__init__.py", line 353, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application
I definitely have both files in the same directory, and I've also tried including the full file path to the dll in the load call. Please advise.