graphics.h in c

Reply

Join Date: Jul 2009
Posts: 45
Reputation: itzAB is an unknown quantity at this point 
Solved Threads: 2
itzAB itzAB is offline Offline
Light Poster

graphics.h in c

 
0
  #1
Aug 10th, 2009
When i was runnning the graphucs c program in turbo c the program was terminated. I gives an error message as

16-bit MS DOS subsystem

The NTVDM CPU has encountered an illegal instruction.
CS:d000 IP:03e2 OP:ff ff eb 05 ea

Please provide me the solution
I also tried using dosbox.. but there was some problem that library files were not included..
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,358
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1463
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: graphics.h in c

 
0
  #2
Aug 10th, 2009
>>Please provide me the solution

The solution is to trash that compiler and get a modern one that is compatible with current Windows operating systems. VC++ 2008 Express and Code::Blocks are both good choices. Google for them and you will easily find the links.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 45
Reputation: itzAB is an unknown quantity at this point 
Solved Threads: 2
itzAB itzAB is offline Offline
Light Poster

Re: graphics.h in c

 
0
  #3
Aug 10th, 2009
Originally Posted by Ancient Dragon View Post
>>Please provide me the solution

The solution is to trash that compiler and get a modern one that is compatible with current Windows operating systems. VC++ 2008 Express and Code::Blocks are both good choices. Google for them and you will easily find the links.
unfortunately I cant dump this compiler right now because our syllabus still follows it....
If possible solve my problem in using this same thing!!!
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: graphics.h in c

 
0
  #4
Aug 10th, 2009
> unfortunately I cant dump this compiler right now because our syllabus still follows it.
Until your country gets it's act together and starts teaching students something used in the real world, I won't worry about out sourcing.

Tell your tutor that this fossil is NOT preparing you for a life after college.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 319
Reputation: Luckychap is on a distinguished road 
Solved Threads: 42
Luckychap's Avatar
Luckychap Luckychap is offline Offline
Posting Whiz

Re: graphics.h in c

 
0
  #5
Aug 10th, 2009
Can you post the code that result in termination.
When you think you have done a lot, then be ready for YOUR downfall.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 9
Reputation: niceboy05 is an unknown quantity at this point 
Solved Threads: 1
niceboy05 niceboy05 is offline Offline
Newbie Poster

Re: graphics.h in c

 
0
  #6
Aug 11th, 2009
Try running Turbo C Compiler using Compatibility mode in Window and See if it helps.
ExpertWebHost.Net -Reliable web hosting service from 1+ Years
99.9% uptime - Instant Setup - CPanel/Fantastico/FP/Etc
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 45
Reputation: itzAB is an unknown quantity at this point 
Solved Threads: 2
itzAB itzAB is offline Offline
Light Poster

Re: graphics.h in c

 
0
  #7
Aug 11th, 2009
Originally Posted by niceboy05 View Post
Try running Turbo C Compiler using Compatibility mode in Window and See if it helps.
it doesnt work....
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 45
Reputation: itzAB is an unknown quantity at this point 
Solved Threads: 2
itzAB itzAB is offline Offline
Light Poster

Re: graphics.h in c

 
0
  #8
Aug 11th, 2009
Originally Posted by Luckychap View Post
Can you post the code that result in termination.
[CODE=C]#include<conio.h>

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


main()
{
int gd=DETECT,gm,x,y;
int array[]={540,220,590,270,570,320,510,320,490,270,540,220};
initgraph(&gd,&gm,"c:\\tc\\bgi");
x=getmaxx();
y=getmaxy();
//printf("%d%d",x,y);
//getch();
setcolor(WHITE);
rectangle(x/30,y/20,x/5,y/4);


}
[CODE]
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 319
Reputation: Luckychap is on a distinguished road 
Solved Threads: 42
Luckychap's Avatar
Luckychap Luckychap is offline Offline
Posting Whiz

Re: graphics.h in c

 
0
  #9
Aug 11th, 2009
Sorry got no clue.

But may this will help: http://support.microsoft.com/kb/245184
When you think you have done a lot, then be ready for YOUR downfall.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 45
Reputation: itzAB is an unknown quantity at this point 
Solved Threads: 2
itzAB itzAB is offline Offline
Light Poster

Re: graphics.h in c

 
0
  #10
Aug 11th, 2009
********problem solved using dosbox********
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC