Hi
"The GlobalAlloc function allocates the specified number of bytes from the heap"

i don't want call this api function in my asm code but,
i don't know how i allocate a dynamic number of bytes to my exe file.

what do i do?
Posted on 2007-01-17 03:59:16 by zoncpp
First, forget Global/LocalAlloc (except for a few specific situations, like dealing with the clipboard), HeapAlloc is your friend - or VirtualAlloc for large allocations that you won't be resizing.

You can't allocate a "dymanic number of bytes in your exe file". What comes closest is, in MASM syntax, "myfluff BYTE 4069 dup (?)" - but that's a static build-time option, not a dynamic allocation.
Posted on 2007-01-17 04:08:49 by f0dder