flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Problem with local/endl macro

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 13 Oct 2005, 23:01
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
Post 13 Oct 2005, 23:01
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8411
Location: Kraków, Poland
Tomasz Grysztar 14 Oct 2005, 09:02
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.
Post 14 Oct 2005, 09:02
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 14 Oct 2005, 10:27
Used addr, and still happens, happens with all variables. Still getting the 'invalid value' error message.
Post 14 Oct 2005, 10:27
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8411
Location: Kraków, Poland
Tomasz Grysztar 14 Oct 2005, 10:34
Make sure you've included the extended headers before using the "addr". Or just use the LEA instead.
Post 14 Oct 2005, 10:34
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 14 Oct 2005, 10:37
Ok, figured out what was wrong, used win32ax.inc instead of win32a.inc and everything worked as suggested, problem solved. What's getting defined in win32ax.inc, and not in win32a.inc?
MadMatt
Post 14 Oct 2005, 10:37
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8411
Location: Kraków, Poland
Tomasz Grysztar 14 Oct 2005, 10:44
I strongly suggest you to read the whole Win32 Headers documentation.
Post 14 Oct 2005, 10:44
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 14 Oct 2005, 16:46
Yes, I'll do that, and I'll also remember that famous phrase more often "when all else fails, read the instructions!!" Very Happy
Post 14 Oct 2005, 16:46
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7103
Location: Slovakia
vid 15 Oct 2005, 16:24
Smile yup, that one works
Post 15 Oct 2005, 16:24
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.