Turbo C/C++ and other junk compilers help, discussions and queries here

speedyguy

Cyborg Agent
Re: Turbo C/C++ graphics distorted

no sir...no change yet...can thr b any graphics driver issue...coz iv just installed xp aftr removing vista n got all drivers from net....somhow i managed 2 get nvidia 6150 drivers...games n others working fine....n ya 1 mr issue is thr related 2 driver....wen my monitor (laptop) goes 2 sleep on recovering windows screen also gets choppy until i restart it...

Enjoy~!
 

j1n M@tt

Cyborg Agent
Re: Turbo C/C++ graphics distorted

In ur TC installed folder u will find a BGI directory or folder. In dat folder u will find a EVGA driver file named EGAVGA.BGI . Copy this file to the BIN directory and run the pgm, it will work fine........
 

Kl@w-24

Slideshow Bob
Re: Turbo C/C++ graphics distorted

Is it an LCD screen u r working on, I mean, r u using TC on ur laptop? The gfx routine has some issues with LCD screens I think... BTW, plz paste the modified code as well.
 

[xubz]

"The Cake is a Lie!!"
Re: Turbo C/C++ graphics distorted

@Zeeshan I really don't think you can program DOS based graphics apps without TC.. Both dos.h and graphics.h are unavilable/severely stripped down in BCC 5.1..

Many Colleges _still_ teach Graphics Programming using Turbo C++ these days :-\
 

speedyguy

Cyborg Agent
Re: Turbo C/C++ graphics distorted

@j1n M@tt: act sub folders doesnot exist....they r all bundled under main tc folder....object n library directories also targetted at c:\....\tc

@abh1shek: code is now like this...


#include<iostream.h>
#include<conio.h>
#include<graphics.h>

void main()
{
int i,dx,dy,xa,ya,xb,yb,stp;
int gd=DETECT,gm;
float xincr,yincr,x,y;
initgraph(&gd,&gm,"C:\\Arena\\Turboc3\\");
clrscr();
cout<<"\n\tEnter starting co-ordinate-(x,y) ";
cin>>xa>>ya;
cout<<"\n\tEnter ending co-ordinate-(x,y) ";
cin>>xb>>yb;
dx=xa-xb;
dy=ya-yb;
if (dx>dy)
stp=dx;
else
stp=dy;
x=xa;
y=ya;
xincr=dx/stp;
yincr=dy/stp;
putpixel(x,y,4);
for (i=1;i<=stp;i++)
{
x=x+xincr;
y=y+yincr;
putpixel(x,y,4);
}
getch();
}

n using a tablet pc from hp...wit amd64*2, nvidia geforce go6150


@zeeshan: m using ur relo soln but ts not including graphics.h header...
Enjoy~!
 
Last edited:

Kl@w-24

Slideshow Bob
Re: Turbo C/C++ graphics distorted

Make it:

Code:
initgraph(&gd,&gm,"C:\\Arena\\Turboc3[b]\\BGI[/b]");
 

speedyguy

Cyborg Agent
Re: Turbo C/C++ graphics distorted

r u sure....thr isnt any directory called bgi within turboc3...newez meanwhile m tryin

Enjoy~!

Edit:

no sir...still not working...sorry

ps: m using relo + borland as suggested by zeeshan but graphics.h not working....infact not present in include n lib folder in borland

Enjoy~!
 

speedyguy

Cyborg Agent
Re: Turbo C/C++ graphics distorted

guys plz consider foll codes...this one is workin fine at output screen....nly thing on coming back 2 editor the screen gets distorted....neva d less atleast i got o/p but again wats d diff wit this one



#include"conio.h"
#include"graphics.h"

void main()
{
int gd=DETECT,gm;
initgraph(&gd, &gm, "c:\\arena\\turboc3");
circle(300,150,100);
getch();
closegraph();
restorecrtmode();
}

ps: i found ts no use of borland compiler...they wont support graphics.h
turbo is d only soln

Enjoy~!
 

threeonethree

Journeyman
Re: Turbo C/C++ graphics distorted

damm what is wrong with people here? just download and install bloodshed for windows or geany for linux and get done with it!!

all these people trying to make a prehistoric piece of software work is just wrong!

why are u stuck to something which was made in like 1990 just because others use it? pffft..
 

speedyguy

Cyborg Agent
Re: Turbo C/C++ graphics distorted

removing restore command not working....

2ndly, that bgi archive not working....says its corrupt...

3rd....trying bloodshed if possible

Enjoy~!
 

dheeraj_kumar

Legen-wait for it-dary!
Re: Turbo C/C++ graphics distorted

Offtopic, but he actually installed latest nvidia drivers so he could run BGI graphics... I salute you man, you just redefined the meaning of "graphics card".
 

speedyguy

Cyborg Agent
Re: Turbo C/C++ graphics distorted

@dheeraj: thank you

will try bgi again but i guess tats not issue....bgi files r present only thing they aint in seperate folders...al mixed up

Enjoy~!
 

speedyguy

Cyborg Agent
Re: Turbo C/C++ graphics distorted

i was too dude....sorry fr being ignorant 2 ur sarcasism but may be aftr gettin my things resolved i'll join u....

Enjoy~!
 

gary4gar

GaurishSharma.com
Re: Turbo C/C++ graphics distorted

Did you try Dosbox?

An open source DOS emulator for BeOS, Linux, Mac OS X, OS/2, and Windows. Primarily focuses on running DOS Games.

I am using this for running TC in Ubuntu. I believe there is a windows port also.
It runs DOS programs very well with alomost zero configrations.

It even runs those 16bit games, which stopped running since Windows NT
 
Top Bottom