Windows下 Python ctypes调dll FileNotFoundError: Could not find module ‘xx.dll’ (or one of itsdependenc

Windows下 Python ctypes调dll FileNotFoundError:

问题描述:
FileNotFoundError: Could not find module "xxl.dll’ (or one of its dependencies). Try using the full path with constructor syntax.

目前暂时的解决方法:
加载dll时设置参数winmode=0,即

dll = ctypes.CDLL("xxx.dll", winmode=0)

你可能感兴趣的:(python,c++)