From: nobody AT nowhere Newsgroups: comp.os.msdos.djgpp Subject: Memory Allocation Date: Thu, 03 Jul 97 14:58:08 GMT Organization: Singapore Telecom Internet Service Lines: 14 Distribution: world Message-ID: <5pf4oq$4ds@lantana.singnet.com.sg> NNTP-Posting-Host: ts900-1803.singnet.com.sg To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello ! I just started using DJGPP and I'm a little confused about memory allocation. There appears to be a few ways to allocate memory : using the new operator, using __dpmi_allocate_dos_memory, __dpmi_allocate_linear_memory, __dpmi_allocate_memory, __dpmi_allocate_shared_memory. Could someone tell me which one I should use and what is the difference between them ? I need to allocate about 1-2 MB. I know the following will be painfully obvious to some people, but how is it possible ( In the sense of I know how it is done but I would like to know why it is allowed) to be able to just set a descriptor to point to the video ram ? Does this mean that I can just point anywhere and just write anywhere ? Thanks Chan Tze Yi