flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly
I haven't checked it completely but the first and fatal error is that you are XOR-encrypting instructions that contains relocations (for instance "push caption2" from the invoke macro).
The example you have seen somewhere probably was an EXE, not a DLL, so the fixups weren't a problem there but now they are. The following workaround will probably solve the problem (if it was only that): Code: ccode_begin: call inv delta: message2 db 'DLL3 Func',0 caption2 db 'DLL3',0 inv: pop eax lea ecx, [eax+message2-delta] ; lea ecx, [eax] would be the same here lea edx, [eax+caption2-delta] stdcall [eax+MessageBoxA-delta], HWND_DESKTOP, ecx, edx, MB_OK ; WARNING: EAX, ECX and EDX destroyed here code_end: |
|||
![]() |
|
powerhead
Thanks! everything works now!
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.