0

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

1 Answer 1

3
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

Sign up to request clarification or add additional context in comments.

3 Comments

Ok Thanks I try it again. But now, what can I use *.lib with python?? The code isn´t the same no? Thank you
Sorry, can you rephrase the question?
yes, sorry my english is horrible!! I´ve 2 problems: ->I try to load dll with this code: f = ctypes.CDLL("vix.dll") and it returns can find the specific module... ->I need add use in python script functions contained in "AllProducts.lib"

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.