flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
madmatt
defining local structures with the locals/endl macro doesn't work correctly
locals ps PAINTSTRUCT endl gives me an 'invalid value' when used in an invoke |
|||
![]() |
|
Tomasz Grysztar
Perhaps you are just trying to pass the address of local label directly to the procedure (and this has nothing to do with whether those are structures or not), what is not possible, since the address is relative to EBP. Read also about "addr" prefix here.
|
|||
![]() |
|
madmatt
Used addr, and still happens, happens with all variables. Still getting the 'invalid value' error message.
|
|||
![]() |
|
Tomasz Grysztar
Make sure you've included the extended headers before using the "addr". Or just use the LEA instead.
|
|||
![]() |
|
Tomasz Grysztar
I strongly suggest you to read the whole Win32 Headers documentation.
|
|||
![]() |
|
madmatt
Yes, I'll do that, and I'll also remember that famous phrase more often "when all else fails, read the instructions!!"
![]() |
|||
![]() |
|
vid
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.