Hello !

First Question
Can I write this without using constants :

invoke WriteFile,,_text,SizeOfText,x,0
Like this :
invoke WriteFile,,'Some Text',SizeOf'SomeText',x,0

Second Question
invoke WriteFile,,_text,SizeOF(_text),,0

Error appears at SizeOF(_text)

How Can I Calculate Size Of Buffer _text??
Posted on 2003-02-21 05:34:47 by Casper
First question:
Which include files do you use? In order to be able to use strings directly in invoke you have to use appropriate invoke macro.

Second question:
There's no SizeOf operator in fasm. To obtain length of some variable (or constant) you can do following: next line after variable declaration write such string <varname>.size = $ - varname.
And, by the way, this question have already been discussed here, search the forum.
Posted on 2003-02-21 09:41:11 by wanderer
Its included with the win32a include file.
Posted on 2003-02-21 10:13:25 by CyberGuy
Im Going to searc da Forum !Q
Posted on 2003-02-21 10:56:46 by Casper