flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vid
maybe you could experiment with more data passing in/out of ASM DLL. For example some structures
|
|||
![]() |
|
Nikolay Petrov
![]()
_________________ regards |
|||||||||||
![]() |
|
treeform
I been doing very similar thing with with "pyFasm" library in which you can using inline fasm code in python ... verry neat but still buggy and incomplete and works only in linux
|
|||
![]() |
|
Rahsennor
I've been doing the same thing (Accessing a FASM DLL) for Lua. It's almost exactly the same, only you have to access the Lua stack explicitly. This looks much easier.
1st post! ![]() |
|||
![]() |
|
DVicthor
Instead of creating a python function for all the exported functions in the DLL, you could just:
Code: def bind(name): mydll = windll.LoadLibrary('testDLL.dll') if hasattr(mydll,name): func = getattr(mydll,name) return func else: raise AttributeError("Function '%s' does not exist in mydll!" % name) And then bind a function like: Code: showMessage = bind('_showMessage') addnums = bind('_addnums') It makes your code cleaner and saves you some time that would be wasted typing. _________________ Code until your brain explodes! ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.