python调用dll方法
摘要:
在python中调用dll文件中的接口比较简单,实例代码如下:如我们有一个test.dll文件,内部定义如下:extern "C"{int __stdcall test( void* p, int len){ return len;}}在python中我们可以用以下两种方式载入1.import ctypesdll = ctypes.windll.LoadLibrary( 'test.dll' )2.import ctypesdll = ctypes.WinDll( 'test.dll' )其中ctypes.windll为ctypes.WinD 阅读全文
posted @ 2011-05-14 20:29 gisai 阅读(2813) 评论(1) 推荐(1) 编辑