For what does "<>" stand for in

I found some reference with the most clear explanation(perhaps): it fills actual parameters with something if actual parameter number is less than formal parameter number.

But i still don't know with what does it fill the actual parameter with or if this is whats really happening.
Posted on 2006-08-08 03:12:15 by w0lfshad3
The <> is used to signify that the structure will be filled with the default values at initialization. In the case of a structure that has no defaults set it will be filled with NULLs, in the case where there are default values it will be filled with those values. To define a default value, place something other than ? in the structure definition, for example...

RECT Struct
left dword 10
right dword 20
up dword 30
down dword 40

so when the structure is used as follows...

rct RECT <>

it will be filled with <10,20,30,40>

In the case of :

RECT Struct
left dword ?
right dword ?
up dword ?
down dword ?

rct RECT <>

will be filled with <0,0,0,0>

Hope this helps.

Posted on 2006-08-08 18:09:11 by donkey
Thanks, seems logical enough, it sucks they didn't say that in the masm help and the stuff i read, it was so simple for them just to add a couple more hints.
Posted on 2006-08-09 06:35:53 by w0lfshad3
No Problem,

You can also over-ride the defaults by placing values in the braces separated by commas. For the RECT structure you can pre-set values as follows...

rct RECT <1,2,3,4>

Posted on 2006-08-09 13:42:38 by donkey