Is there any way dynamically allocate memory to a specified address?

i.e we know that a pointer is pointing to a memory location but the memory is not allocated to it. we want to allocate memory to it but do not want to change the location to which the pointer is pointing.

i hope it is clear enough :)

Posted on 2001-12-07 00:10:03 by goto
The function VirtualAlloc will help you.
Posted on 2001-12-07 00:43:17 by Axial