flat assembler
Message board for the users of flat assembler.

Index > Windows > QUestions about structures

Author
Thread Post new topic Reply to topic
dieboy



Joined: 30 Dec 2004
Posts: 41
Location: Poland, Elblag
dieboy
Today I have to use structures in FASM. And I have some questions:
1.That is a diffrence behind struc and struct?
2.This doesn't work:
Code:
struct DATA
    .name rb 20
    .address rb 50
ends
buffer DATA  
invoke ReadFile, [file], buffer, sizeof.DATA, ebx, 0
invoke MessageBox, 0, [buffer.name], [buffer.address], 0 ;Undefinde symbol :/
    

What's wrong? Sad

_________________
...
Post 15 Jul 2005, 20:40
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7802
Location: Kraków, Poland
Tomasz Grysztar
Read this new documentation: http://flatassembler.net/docs.php?article=win32
for the information about the new Win32 programming macros.

In this case just remove the dots from the definition of structure. Also I guess you wanted to pass pointers to structure fields to MessageBox - don't use square brackets then.
Post 15 Jul 2005, 21:14
View user's profile Send private message Visit poster's website Reply with quote
dieboy



Joined: 30 Dec 2004
Posts: 41
Location: Poland, Elblag
dieboy
Thanks Smile. I don't remember to read documentation.
Post 15 Jul 2005, 21:25
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.