开发者

Python: using ctypes

I need to use Dll from python using ctypes but I read the tutorial and I don´t understand anything!!

I 开发者_开发知识库wants to load the dll from path and access to its functions...

SOS!!

Thanks


import ctypes
foo = ctypes.CDLL("/path/to/library")
foo.function_name()

You should maybe look for a better tutorial. Here is one: http://python.net/crew/theller/ctypes/tutorial.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜