News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Structures

Started by 2-Bit Chip, January 13, 2010, 04:40:39 AM

Previous topic - Next topic

2-Bit Chip

Will this work?

ComCtrls INITCOMMONCONTROLSEX <SIZEOF INITCOMMONCONTROLSEX, ICC_STANDARD_CLASSES>

Or, does that make 2 structures instead of putting in values for that single struct?

donkey

That works just fine, I have used it for years.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

2-Bit Chip

Alrighty then. :lol

I would rather using this method than moving data around in the code segment.

dedndave

i think it is a matter of how large the structure is
if it is sufficiently large, and only needs to be initialized once, it may make a smaller EXE to initialize it with code
because you can put the struct in the uninitialized data area
if you have a thousand structures and initialize them with a loop, it can make a big difference

Slugsnack

there is also the issue of readability. for very large structures, initialising it all in the data section makes it completely unreadable.

dedndave

a lot of typing, too   :bg
well - copy/paste, anyways