www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/06/01:08:32

Xref: news-dnh.mv.net comp.os.msdos.djgpp:4127
Path: news-dnh.mv.net!mv!barney.gvi.net!news.netrail.net!uunet!in2.uu.net!news.mathworks.com!tank.news.pipex.net!pipex!oleane!in2p3.fr!swidir.switch.ch!swsbe6.switch.ch!scsing.switch.ch!news.rediris.es!news.belnet.be!infoserv.rug.ac.be!eduserv!lvderdon
From: lvderdon AT eduserv DOT rug DOT ac DOT be (Leo Vanderdonckt)
Newsgroups: comp.os.msdos.djgpp
Subject: Question about memory usage above 640kb with borland c++
Date: 3 Jan 1996 13:43:28 GMT
Organization: University of Ghent, Belgium
Lines: 30
Message-ID: <4ce160$7mo@infoserv.rug.ac.be>
NNTP-Posting-Host: eduserv.rug.ac.be
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi everybody,
A friend of mine has a problem with a program.  He needs
more than 640k to store pictures he wants to work with.
But he can't get to the extended and/or expanded memory.
Could somebody of you guys help him out ?
He gave me a little demostration file :


#include<alloc.h>
#include<iostream.h>
#include<conio.h>
main()
    {char huge * charptr=(char huge *)farmalloc(700000L);
     if (!charptr) cout<<"Allocation not succeeded.\n";
     cout<<"Program ended.\n";
     getch();
     return 0;}

/*Under Borland C++ 4.5: (DOS-application)
It is impossible for me to allocate in extended or expanded memory,
even with the Huge memory model.*/ 


-----------------------------------------------------
Leo Vanderdonckt at Ghent University, Belgium, Europe
e-mail : lvderdon AT eduserv DOT rug DOT ac DOT be
-----------------------------------------------------
"There are three kinds of people in the world : 
those who can count, and those who can't..."
-----------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019