flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Use "library" several times |
Author |
|
revolution 07 Nov 2011, 20:45
Search the board for LibraryOnce.
|
|||
07 Nov 2011, 20:45 |
|
DimonSoft 08 Nov 2011, 09:47
revolution wrote: Search the board for LibraryOnce. Thanks for you reply, but this doesn't seem to be the thing I need. Alas, libraryonce has the same problem as original library. Code: ; ...Some source code here... section '.idata' import data readable writeable libraryonce kernel32, 'kernel32.dll', 'api\kernel232.inc' libraryonce myDLL, 'myDLL.dll', 'myapi\mydll.inc' put_library_table put_import_lookups put_library_names put_import_names ; ...Rest of the source code... So, it compiles well, but when you look at the executable, you'll see that the import section contains items only for the first libraryonce macro. And when an application tries to invoke some function from myDLL.dll, there's a wrong address and the application crashes. I'm not good at FASM macros, but it seems it should work, shouldn't it? Are there any additional dependencies I have to keep in mind? |
|||
08 Nov 2011, 09:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.