Hi, i would like to call a funktion with the paramater TRUE or FALSE
how I can realize that ?
Posted on 2003-04-11 14:55:52 by Forginforcer
How about:


invoke function, TRUE

or


invoke function, FALSE


be sure that you use CAPS.
Posted on 2003-04-11 15:54:15 by SamiP
no, wich type I have to choose at the funktion ??
BYTE ???
Posted on 2003-04-11 16:03:40 by Forginforcer

no, wich type I have to choose at the funktion ??
BYTE ???


Why dont you try before you ask?
Posted on 2003-04-11 16:07:23 by bazik
forginforcer you can chose
I'd take a DWORD since a DWORd will be pushed on the stack anyway on 32 bits CPUs but in reality a BOOL is just a convention of status

if certain value then true
if not certain value then false

that's just a human convention, for a CPU numbers are all the same. For you it will be what you base your logic on.
Posted on 2003-04-11 16:10:31 by Hiroshimator
My question isnt anoying, because:
1. Its could help novices like me
2. it doesnt work at my proc. Its crashs

sl PROTO vi:BYTE

INVOKE sl, TRUE ;//<-ULTRA-CRASHHHHHHH !

sl PROC vi:BYTE
.IF vi == TRUE


.ELSE


.ENDIF

sl ENDP

Thanks !

Hiroschima :grin: :grin: :grin: :grin: *hibhihihihi*

@bazik Thanks for your intensive helping, but in this case your arem't right. Because, the more informations, the better for newbies.
Even if the same question is explained 3 times in different versions, its better than one. Get a D?ner and cool dwon. I'm and some others are new, and want to learn. We dont want to make angry someone !

Well deome...
Posted on 2003-04-11 17:25:16 by Forginforcer
what bazik is saying is that you first need to learn the theory behind programming and then a specific language :)
so first a bit about program flow and specific concepts of state and evaluation.


bazik is a penguin, they're quickly annoyed :grin:
Posted on 2003-04-11 17:38:32 by Hiroshimator
Yes

However if you base your knowledge on others too much you will not learn the most important thing:
HOW to LEARN this is more important than actuall knowledge

I am sure BAzik was not angry ...

i guess i whould say that you really have a chance to answer those kind of very simple questions yourself, and the actual act o trying to find such answers (by browsing others code or MASM include files or tutorials fro example) WILL HELP you much more than a fast answer here...

Besides use DWORDS for all parameters and return values in WIn32ASM take a byte from them if you need to but you can not or should not try to push a byte or a word on the stack :P

To conclude :
---------------------
Rule1. Unless "special cases" EVERITHING is a DWORD :))
Rule2. In special cases refer to Rule.1
Posted on 2003-04-11 17:47:32 by BogdanOntanu
ret
Posted on 2003-04-11 18:06:28 by arkane
tannks !

im a ultra-maron ! *hihihi*
Posted on 2003-04-11 19:44:09 by Forginforcer
I use a bit/flag, but I'm the bitRAKE so I have to.
Posted on 2003-04-11 20:02:26 by bitRAKE