TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Frank Adam
from: Paul Wankadia
date: 1996-10-24 16:09:38
subject: A few questions

On 16 Oct 96, Frank Adam wrote to Paul Wankadia --



 PW> BTW this is to everyone -- has anyone ever had success with BGI? I can't

 FA> Paul i've missed this Q till now, but make sure you have the graphics

 FA> lib option checked in -> or
thereabouts anyway.



Done that.



 FA> The BGI works fine, but remember you need to have borland on the PC to

 FA> run it, if you release the program, you'll have to register the BGI

 FA> and the font libs in your exe.

 FA> It's all in the manual or online help.look at regiterbgi().



Yep.  I have all the BGIs and CHRs and whatnots...



 FA> If not that..

 FA> Where do you have the problem, at initgraph() or in the actual code ?



initgraph() doesn't seem to work at times.  At other times, when I've taken

THEIR example code, everything works.  Then when I make a simple modification

that ought to work, it all crashes down around my ears...



 FA> You may have to specify the path to your BGI directory, since normaly

 FA> only the BIN directory will be in your path. You'd do that in your

 FA> graphinit() function. From memory..

 FA> status = initgraph(mode,"d:\borland\bgi"); (hmm, i think
i'm missing

 FA> a variable or two there)



I just say "" and put all the drivers in the directory...



 FA> Anyway run the online help on initgraph() and fill in the
"" with the

 FA> path. Also remember you have to be in large model for graphics.



Ahhh...  Now THAT'S what I'm not doing -- LARGE model, you say?  I'm still

trying to come to terms with the memory-hog I call SMALL model...  TINY is

getting too small now, so it's upto SMALL model, which likes to take > 100Kb

at times...



BTW with SMALL model (producing a COM file), is there any code I can type in

that will deallocate all the memory the program is not using.  E.g. I have

programmed in Rowan Crowe's MoonRock -- I can make my programs only use (say)

35Kb.  Yet, with Turbo C++ v3.0, ALL programs take 66Kb (SMALL model), even

if I'm not using all of it...  How can I deallocate the extra bit in code?



Chow.



Junyer Hakker.



--- PPoint 2.00

* Origin: Junyer's Workshop (3:640/772.3)
SEEN-BY: 50/99 620/243 623/630 640/201 206 217 222 230 238 254 297 305 309
SEEN-BY: 640/370 375 386 531 535 547 739 750 772 773 820 821 822 823 890 895
SEEN-BY: 690/660 711/409 410 413 430 808 809 932 934 712/515 713/317 714/906
SEEN-BY: 800/1
@PATH: 640/772 531 201 820 711/409 808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.