flat assembler
Message board for the users of flat assembler.

Index > Windows > Include 'macro/import32.inc' vs 'win32a.inc' vs 'win32ax.inc

Author
Thread Post new topic Reply to topic
upsurt



Joined: 14 Jan 2014
Posts: 51
upsurt 14 Jan 2014, 21:01
Hi

I'm very new to FASM. Can you tell me the difference between

include 'macro/import32.inc'

and

include 'win32a.inc'

and

include 'win32ax.inc'

My code works with each of them. Which one should I use?

Edit:
------------------------------------------
Another question/confusion:

.text vs section '.text' code readable executable
Post 14 Jan 2014, 21:01
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 14 Jan 2014, 22:43
win32ANSI.inc
win32ANSIXtended.inc

The latter allows you to do such things as invoke MessageBox,0,<"my string here">. Contains extension macros.
Post 14 Jan 2014, 22:43
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20363
Location: In your JS exploiting you and your system
revolution 14 Jan 2014, 22:45
typedef wrote:
win32ANSI.inc
win32ANSIXtended.inc

The latter allows you to do such things as invoke MessageBox,0,<"my string here">. Contains extension macros.
I think it is ASCII not ANSI.
Post 14 Jan 2014, 22:45
View user's profile Send private message Visit poster's website Reply with quote
upsurt



Joined: 14 Jan 2014
Posts: 51
upsurt 15 Jan 2014, 00:39
thank you very much for the clarification Smile
Post 15 Jan 2014, 00:39
View user's profile Send private message Reply with quote
upsurt



Joined: 14 Jan 2014
Posts: 51
upsurt 15 Jan 2014, 10:02
Last night I made a copy of my FASM folder and all my files.
Now I try to run it on a another pc and get error about the include.

It seems he can't find any of these files

;include 'macro/import32.inc'
include 'win32a.inc'
;include 'win32ax.inc'

Any hints?
Post 15 Jan 2014, 10:02
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20363
Location: In your JS exploiting you and your system
revolution 15 Jan 2014, 10:15
upsurt wrote:
.text vs section '.text' code readable executable
I don't know where .text is defined in your setup. It is not standard. But other macros are defined in win32ax.inc
Code:
macro .data { section '.data' data readable writeable }

macro .code { section '.text' code readable executable }    
upsurt wrote:
Last night I made a copy of my FASM folder and all my files.
Now I try to run it on a another pc and get error about the include.

It seems he can't find any of these files

;include 'macro/import32.inc'
include 'win32a.inc'
;include 'win32ax.inc'

Any hints?
Set your "include" environment variable. It is stated in the fasm help file about installation requirements.
Post 15 Jan 2014, 10:15
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.