flat assembler
Message board for the users of flat assembler.

Index > Windows > windows programming using fasm?

Author
Thread Post new topic Reply to topic
int0x50



Joined: 19 Jul 2019
Posts: 54
int0x50 16 Jun 2023, 12:38
I am not sure if this was asked already. I am coming from C background and started coding in FASM (Windows). I am quite comfortable in coding.

Now, coming to Windows programming (in FASM), my thinking is legacy. like if there is a structure defined in WinAPI, i change everything into dd, dw, db; etc and access it like that.

I am not using things like struct, addr, and other. I think i have not really looked into tutorials. But, is that the starting place to begin with?
Post 16 Jun 2023, 12:38
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1637
Location: Toronto, Canada
AsmGuru62 16 Jun 2023, 16:03
FASM already has all the include files with all the structures and APIs (well, most of them, some of unusual stuff is missing, but you always can add it).
And those includes are also made for both 32-bit and 64-bit coding.
All you need is a good IDE and you can code x32 and x64 programs right away.
Take a look at the INCLUDE folder in your FASM distribution.
All files you need are there.
Post 16 Jun 2023, 16:03
View user's profile Send private message Send e-mail Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1637
Location: Toronto, Canada
AsmGuru62 16 Jun 2023, 16:07
Also, FASM has PDF files where the Windows coding is described very well.
Post 16 Jun 2023, 16:07
View user's profile Send private message Send e-mail Reply with quote
Flier-Mate



Joined: 26 May 2023
Posts: 88
Flier-Mate 16 Jun 2023, 17:16
int0x50 wrote:
...my thinking is legacy.... I am not using things like struct, addr, and other.


I think it is good to learn that way. You may also want to explore how to transform macro into raw Assembly code.
Like "invoke", "cinvoke", "fastcall"...... I leave it as an exercise for you. Laughing
Post 16 Jun 2023, 17:16
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4347
Location: Now
edfed 19 Jun 2023, 10:57
win programming with fasm is far more easier than in cpp or c.

why?
cause everything is in the source. no more manifest, .lib, .rc and all these f***ing stuff.

the only lack in fasm VS c/c++ is the possibility to make multiple nested calls in a single line.

but there are lot of ways to simplify the programming process with macros, procs, local and anonymous functions
Post 19 Jun 2023, 10:57
View user's profile Send private message Visit poster's website Reply with quote
int0x50



Joined: 19 Jul 2019
Posts: 54
int0x50 20 Jun 2023, 05:22
thank you @AsmGuru62... I am looking at things you mentioned ...

thanks for the motivation @Flier-Mate ... noted ...

@edfed I like to see that it's going to be fun and easy ... thanks ...
Post 20 Jun 2023, 05:22
View user's profile Send private message 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.