
Hi Guys, right now I had to call functions from a dll, and I started using ctypes. I found this library too https://pypi.python.org/pypi/pywrap/0.1.0 which says (qutation): Replace this: prototype = ctypes.WINFUNCTYPE(wintypes.HANDLE, wintypes.UINT, wintypes.HANDLE)paramflags = (1, "uFormat"), (1, "hMem")SetClipboardData = prototype(("SetClipboardData", user32), paramflags)SetClipboardData.errcheck = null_errcheck With this: SetClipboardData = pywrap.wrap_winapi(name="SetClipboardData", library=user32, restype=wintypes.BOOL, params=[ Parameter("uFormat", wintypes.UINT), Parameter("hMem", wintypes.HANDLE) ], errcheck=null_errcheck) (end qutation) My idea: something like this library should be implemented in Python to make it more simple to use ctypes. BR, George

I have in the past written a small utility to use compact signatures like: i i -> i to indicate a function taking two ints and returning an int. See for example: https://github.com/stephanh42/armasm Op 7 mrt. 2017 10:43 a.m. schreef "George Fischhof" <george@fischhof.hu>:

Ever looked up cffi? You won't be disappointed. -- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else http://refi64.com On Mar 7, 2017 3:43 AM, "George Fischhof" <george@fischhof.hu> wrote:

I have in the past written a small utility to use compact signatures like: i i -> i to indicate a function taking two ints and returning an int. See for example: https://github.com/stephanh42/armasm Op 7 mrt. 2017 10:43 a.m. schreef "George Fischhof" <george@fischhof.hu>:

Ever looked up cffi? You won't be disappointed. -- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else http://refi64.com On Mar 7, 2017 3:43 AM, "George Fischhof" <george@fischhof.hu> wrote:
participants (3)
-
George Fischhof
-
Ryan Gonzalez
-
Stephan Houben