flat assembler
Message board for the users of flat assembler.

Index > Main > Errors on struct definition (or I don't know how to define)

Author
Thread Post new topic Reply to topic
StrenoJr



Joined: 13 Mar 2014
Posts: 22
Location: Slovakia
StrenoJr
Hello.
I get the "illegal instruction" when I try to define a structure for example with this code
Code:
struct STRUCTURE1
      Member1    dd ? 
      Member2    dd ? 
ends                     
which I found here somewhere that it works.
Perhaps I don't know how to define it or something.
How to use ti correctly?[/i]
Post 07 Apr 2014, 12:18
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17278
Location: In your JS exploiting you and your system
revolution
You need to include the struct macro:
Code:
include 'win32ax.inc'    
Post 07 Apr 2014, 12:20
View user's profile Send private message Visit poster's website Reply with quote
StrenoJr



Joined: 13 Mar 2014
Posts: 22
Location: Slovakia
StrenoJr
Thanks!
Edit: Including the win32ax makes my application to be .exe but what if I want to use structures on a .com program? What to include?
Edit2: OK, win32a.inc seems to work fine.
Post 07 Apr 2014, 12:24
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17278
Location: In your JS exploiting you and your system
revolution
SysWorm wrote:
Thanks!
Edit: Including the win32ax makes my application to be .exe but what if I want to use structures on a .com program? What to include?
Edit2: OK, win32a.inc seems to work fine.
Include only the struct definitions:
Code:
include 'macro/struct.inc'    
Post 07 Apr 2014, 13:09
View user's profile Send private message Visit poster's website 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.

Powered by rwasa.