开发者

Python: using ctypes

开发者 https://www.devze.com 2023-01-12 09:48 出处:网络
I need to use Dll from python using ctypes but I read the tutorial and I don´t understand anything!!

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

精彩评论

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