Here is a special pack of includes for Win32 programming with fasm 1.40
It's for those users, who have fast computers and are not afraid of slowing down the assembly process, because those includes contain highly complicated macros and the lots of declarations (altough still very incomplete, only files for the most frequently used DLL are included). With a single include into your source you get the simplified section headers, automated import table generation, optionally checking the count of parameters, many Win32 equates defined.

But I'm afraid that even when you've got the awfully fast computer this macro pack would cause too much slow down with a bit larger projects.

Please test it and let me know of any bugs you find there. If you have made some more includes that can be added into this package, please post them here.
(pelaillo: Yes, you have given the more includes, but I don't have equates for them, and also if I included everything, the slow down would be immense.)
Posted on 2002-08-21 11:48:44 by Tomasz Grysztar
Perfect! (but what else can you expect from a master? :) )
Nah, it isn't that slow (1.7 secs for the template, the same app written in C++ take much longer to compile...)

1.7 for the example, 2.2 secs for the template. (I compiled teh wrong file, but it's still fast)
Posted on 2002-08-21 12:42:58 by scientica
Originally posted by Privalov
Please test it and let me know of any bugs you find there.


in the win32as.inc
include '%include%/pcount/advapi32.inc' is missed


local labels ".label" not work if label after reference to this label
Posted on 2002-08-22 02:51:50 by dreamer2
What do you exacly mean about this ".label" problem?
Posted on 2002-08-22 04:39:20 by Tomasz Grysztar

What do you exacly mean about this ".label" problem?


ya hotel skazat chto esli metka posle obrachenia k ney to proishodit oshibka, esli metka ranshe vse rabotaet.

eto tolko esli mejdu metkoj i obracheniem stoit invoke


include '%include%/win32as.inc'

.data

caption db "Win32 Assembly",0
message db "Hi! I'm the example program!",0

.code

start:
jmp .l
invoke MessageBox,HWND_DESKTOP,message,caption,MB_OK
.l:
invoke ExitProcess,0

.end start
Posted on 2002-08-22 04:42:51 by dreamer2
Yes, you were right. Here is the fix for "win32as.inc' and "win32ws.inc".

Gee! Are people really programming using it?
Posted on 2002-08-22 05:11:07 by Tomasz Grysztar

Yes, you were right. Here is the fix for "win32as.inc' and "win32ws.inc".

Gee! Are people really programming using it?


i try it...
why not?



PS
Oh my english....


EDIT: Fix not work :(
"invalid value jmp .l"
Posted on 2002-08-22 05:16:11 by dreamer2
When I get a chance, I'll try it on a >2300 Line App at Work.

Are there any notes on porting from the Orig Macros to the New Ones?

Mike
Posted on 2002-09-10 00:37:50 by eet_1024