Page 1 of 1

Question about SizeOf()

Posted: Sun Aug 17, 2003 1:50 am
by Flype
Hello,
Is the value of SizeOf( MyStruct ) precalculated at compilation ?

Posted: Sun Aug 17, 2003 12:35 pm
by Fred
Yes.

Posted: Sun Aug 17, 2003 2:02 pm
by Flype
thanx Fred,

On the french forum, Denis confirmed me this through this piece of code :

Code: Select all

PB CODE:
a = SizeOf(BITMAPINFOHEADER) 
End  

ASM OUTPUT CODE:
; a = SizeOf(BITMAPINFOHEADER) 
MOV eax,40 
MOV dword [v_a],eax