News:

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

In Memory Dialog Question

Started by rags, October 26, 2005, 04:25:50 PM

Previous topic - Next topic

rags

When using the dialog macro, how do you know how much memory to allocate for the dialog?
Is there some kind of guideline to go by?
Does it depend on the amount of controls on the dialog?

Thanks,
Rags
God made Man, but the monkey applied the glue -DEVO

hutch--

rags,

You get some idea by the amount of code in each macro call and naturally the more controls you use, the higher the memory usage is but it is still reasonably small amounts. Simple dialogs build with 1k no problems but with modern hardware and memory, allocating 64k is hardly a problem and you would strugle to put that many controls on a dialog.

In the later masm32 example code is a demo called "tables" that loop creats 256 check boxes as well as a few buttons and it safely uses 32k so its easy enough to tweak to fit.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php