Groovy hepcat Paul Maddox jived with All on 11 Mar 97 12:39:00!
DOS4GW variables's a cool scene. Dig it!
PM> Is there anyone out there that knows how to allocate memory in DOS4GW
PM> for Watcom C++ 10.6?
Just malloc or calloc it or use the "new" operator.
PM> Basically, I want to move some variables into protected memory above
PM> 640kb to free some conventional memory so I can shell another program
PM> using system().
You don't need to move anithing around. If you're compiling and
linking in protected mode using DOS4GW then all memory you allocate
using standard C/C++ functions is allocated in extended memory.
You can allocate memory below the 640k barrier if you need it (for
some DOS or system related purpose, for example). Check the online
help (Programmer's Guide) for more information.
Wolvaen
... I am DOS of Borg! Prepare... oops, out of memory!
--- Blue Wave/RA v2.20
---------------
* Origin: The Gate, Melbourne Australia, +61-3-9809-5097 28.8k (3:633/159)
|