Hello,
Is the value of SizeOf( MyStruct ) precalculated at compilation ?
Question about SizeOf()
Question about SizeOf()
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
thanx Fred,
On the french forum, Denis confirmed me this through this piece of code :
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 No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer

