boost.python 编写扩展python库

时间:2015-03-08 04:11:19
【文件属性】:
文件名称:boost.python 编写扩展python库
文件大小:6.37MB
文件格式:RAR
更新时间:2015-03-08 04:11:19
boost python vc 混合编程 环境 vs2008 构建 python26 boost_1_44 使用boost.python 编写扩展python库,使用mfc例子调用扩展的python库。 myPydll 工程为扩展python库,生成文件myPydll.dll,将该文件拷贝到python解释器可搜索的路径下,如我的电脑就是“C:\Python26\DLLs”,并改后缀名为pyd。即文件myPydll.pyd。或者与当前测试的程序在同一目录,如测试程序test.exe与myPydll.pyd在同一目录,test.exe即可正常运行 test 工程是测试调用自己编写的python扩展库的mfc例子。 文件 pyinit.hpp 是vc中使用python时的初始化封装 使用的boost库版本是1.44,我的boost库路径是“D:\Program Files\Code\boost_1_44_0” boost_python-vc90-mt-gd-1_44.dll boost_python-vc90-mt-gd-1_44.lib 文件夹中的dll和lib等文件是 boost.python库的动态库和lib的release和debug版。
【文件预览】:
myPydll
----pyinit.hpp(908B)
----Debug()
--------myPydll.pyd(102KB)
--------myPydll.dll(102KB)
--------test.exe(111KB)
----boost_python-vc90-mt-gd-1_44.dll(500KB)
----myPydll.suo(37KB)
----说明.txt(781B)
----myPydll.ncb(23.28MB)
----test()
--------test.vcproj(5KB)
--------resource.h(722B)
--------test.cpp(2KB)
--------test.h(429B)
--------stdafx.h(2KB)
--------testDlg.cpp(4KB)
--------res()
--------test.rc(5KB)
--------stdafx.cpp(135B)
--------test.vcproj.LIZHIQUAN.Administrator.user(1KB)
--------targetver.h(1KB)
--------testDlg.h(785B)
----boost_python-vc90-mt-gd-1_44.lib(186KB)
----myPydll.sln(1KB)
----myPydll()
--------myPydll.vcproj.LIZHIQUAN.Administrator.user(1KB)
--------myPydll.vcproj(5KB)
--------stdafx.h(313B)
--------myPydll.cpp(79B)
--------stdafx.cpp(212B)
--------dllmain.cpp(674B)
--------targetver.h(1KB)

网友评论

  • 不错,所说不是我想要的
  • 对我的工程有点帮助吧