[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] DLL's



Jason Ward wrote:
Hi.
I want to write program in assembler and put them into dlls.
Then I want to make python call those dlls for me. How does
python call up dlls?
Why not just make C++ dlls?
Assembler is scary :O
Yeah, you can do this.
You can use ctypes to call dlls.
Not sure how, but now that you have a hint,
you should be able to google 'python ctypes' and find info on it.

Also, if I make a function return a value in the dll and then python calls it up. Can I do it like this.

num=dll_function()
I believe this is the point of ctypes.
Tell me how it goes.
-Luke