CE Home
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Computer Science & IT Engineering
Notices


Advertisements
Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)
Old 30th November 2008, 08:08 PM
CE - Newbie
 
Join Date: 30th November 2008
I'm a Crazy Computer Engineer
Posts: 4
Default Problem with Turbo C

guys i have a problem..i cannot use turboc compiler to compile a computer graphics program in my PC.Other C,C++ programs are run in C.But C Graphics programs are not running..i am using AMD 3600+ processor and nvidia motherboard (M2n-MX)..do any one help me with this..
???
Ankp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)
Old 2nd December 2008, 12:48 AM
CE - Regular Member
 
komputergeek's Avatar
 
Join Date: 21st October 2008
Location: India
I'm a Crazy IT Engineer
Posts: 55
Send a message via Yahoo to komputergeek
Default Re: Problem with Turbo C

Check this:
problem in turboc
__________________
IF YOU CAN'T Convince THEM ...

CONFUSE THEM ...
komputergeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)
Old 2nd December 2008, 08:19 PM
CE - Regular Member
 
Ashutosh_shukla's Avatar
 
Join Date: 16th November 2008
Location: India
I'm a Crazy Computer Science & Engineering Engineer
Posts: 54
Send a message via Yahoo to Ashutosh_shukla
Default Re: Problem with Turbo C

You may have an error of runtime in windows if you do not specify correct path for initgraph(). Try getting correct path Remember that to specify \ you need to give \\ instead of \ . See if this works or post a small program that you cannot compile.
Ashutosh_shukla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)
Old 2nd December 2008, 08:48 PM
CE - Newbie
 
Join Date: 2nd December 2008
I'm a Crazy Computer Engineer
Posts: 3
Default Re: Problem with Turbo C

Check libraries in turboc options. Generally graphics library will be not checked. We have manually enable it by clicking on the option button.
rajanmr is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)
Old 5th December 2008, 07:46 PM
CE - Newbie
 
Join Date: 30th November 2008
I'm a Crazy Computer Engineer
Posts: 4
Default Re: Problem with Turbo C

i have give all correct paths and i have included all graphics library...
but then also it not working...i am doing line drawing algorithms in C graphics.program is compiling but when i am trying to run it. turbo C is going to be closed..
so please help me wht to do ???
Ankp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)
Old 6th December 2008, 10:20 PM
CE - Regular Member
 
Ashutosh_shukla's Avatar
 
Join Date: 16th November 2008
Location: India
I'm a Crazy Computer Science & Engineering Engineer
Posts: 54
Send a message via Yahoo to Ashutosh_shukla
Default Re: Problem with Turbo C

I told you post your code Please if you do that may be we can help you properly.
Ashutosh_shukla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)
Old 7th December 2008, 09:35 PM
CE - Newbie
 
Join Date: 30th November 2008
I'm a Crazy Computer Engineer
Posts: 4
Default Re: Problem with Turbo C

#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>

void main()
{
int i,x=0;
int gd=DETECT,gm;
float r,y,xinc=1,yinc=0.75;
initgraph(&gd,&gm,"");
setfillstyle(1,4);
setcolor(4);
y=getmaxy()/2;
printf("\nEnter the radious=>");
scanf("%f",&r);

while(!kbhit())
{
setcolor(4);
circle(x,y,r);
floodfill(x,y,4);
if(x+r>=getmaxx())
xinc=-1.0;
if(x-r<=0)
xinc=1.0;
x=x+xinc;
if(y+r>=getmaxy())
yinc=-0.75;
if(y-r<=0)
yinc=0.75;
y=y+yinc;
delay(10);
cleardevice();
}
getch();
}


this is my program....i can compile it. but when i am going to run it, turbo c is going to close....
Ankp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)
Old 8th December 2008, 02:01 AM
CE - Apprentice
 
Join Date: 17th November 2008
I'm a Crazy Computer Science and egineering Engineer
Posts: 21
Default Re: Problem with Turbo C

---->initgraph(&gd,&gm,"");
just replace this line by
---->initgraph(&gd,&gm,"c:\\tc\\bgi\\*.*");
make sure that all directories are properly addressed and you have and the path "c:\tc\bgi\" exists if such path does not exist then try to find some other compilor there there is no problem with your motherboard or processor.........
sumitjami is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)
Old 9th December 2008, 07:23 PM
CE - Newbie
 
Join Date: 30th November 2008
I'm a Crazy Computer Engineer
Posts: 4
Default Re: Problem with Turbo C

ya bro.... i know that...just forgot to write .....but when i am writing it then also its not working...




#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>

void main()
{
int i,x=0;
int gd=DETECT,gm;
float r,y,xinc=1,yinc=0.75;
initgraph(&gd,&gm,"C:\\TC\\bgi");
setfillstyle(1,4);
setcolor(4);
y=getmaxy()/2;
printf("\nEnter the radious=>");
scanf("%f",&r);

while(!kbhit())
{
setcolor(4);
circle(x,y,r);
floodfill(x,y,4);
if(x+r>=getmaxx())
xinc=-1.0;
if(x-r<=0)
xinc=1.0;
x=x+xinc;
if(y+r>=getmaxy())
yinc=-0.75;
if(y-r<=0)
yinc=0.75;
y=y+yinc;
delay(10);
cleardevice();
}
getch();
}



this is also not working...
Ankp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)
Old 9th December 2008, 07:32 PM
CE - Regular Member
 
Ashutosh_shukla's Avatar
 
Join Date: 16th November 2008
Location: India
I'm a Crazy Computer Science & Engineering Engineer
Posts: 54
Send a message via Yahoo to Ashutosh_shukla
Default Re: Problem with Turbo C

i ran your code and it works just make sure that your bgi files are in correct place i dont see any reason for code not to run
Ashutosh_shukla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
altogithm, probleminturboc, turboc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with dhcp client engineer_vinay Computer Science & IT Engineering 2 18th September 2008 05:12 PM
Problem with installation of Visual Studio 2008 morecrazythanu Computer Science & IT Engineering 3 29th August 2008 11:48 PM
Problem with 2 phase BLDC sulg Electrical & Electronics Engineering 2 11th February 2008 08:32 PM
Problem with Yahoo Voice Chat kiran0866 Computer Science & IT Engineering 1 29th June 2007 11:22 AM
Problem with Yahoo Messenger : Urgent help needed chaudharyssv Computer Science & IT Engineering 4 28th March 2007 12:00 AM


All times are GMT +5.5. The time now is 10:59 AM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.

Advertisements