1. 首页
  2. 服务器应用
  3. 虚拟化
  4. Windows系统Python直接调用C++ DLL的方法

Windows系统Python直接调用C++ DLL的方法

上传者: 2020-11-28 18:22:47上传 PDF文件 35.98KB 热度 24次

环境:Window 10,VS 2019, Python 2.7.12, 64bit1,打开 VS 2019,新建C++ Windows 动态链接库工程 Example,加入下列文件,如果Python是64位的则在VS中 Solution platforms 选择 x64 编译成64位的 DLL;Example.hExample.cpp编译,得到 Example.dll2, 打开 Command,cd 到 Example.dll 所在目录,输入 Python2,进入python环境

下载地址
用户评论