943,857 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1357
  • C RSS
Aug 10th, 2009
0

graphics.h in c

Expand Post »
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..
Similar Threads
Reputation Points: 8
Solved Threads: 2
Junior Poster in Training
alvalany is offline Offline
61 posts
since Jul 2009
Aug 10th, 2009
0

Re: graphics.h in c

>>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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,951 posts
since Aug 2005
Aug 10th, 2009
0

Re: graphics.h in c

>>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!!!
Reputation Points: 8
Solved Threads: 2
Junior Poster in Training
alvalany is offline Offline
61 posts
since Jul 2009
Aug 10th, 2009
0

Re: graphics.h in c

> 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.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Aug 10th, 2009
0

Re: graphics.h in c

Can you post the code that result in termination.
Reputation Points: 83
Solved Threads: 61
Posting Pro in Training
Luckychap is offline Offline
442 posts
since Aug 2006
Aug 11th, 2009
0

Re: graphics.h in c

Try running Turbo C Compiler using Compatibility mode in Window and See if it helps.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
niceboy05 is offline Offline
9 posts
since Aug 2009
Aug 11th, 2009
0

Re: graphics.h in c

Click to Expand / Collapse  Quote originally posted by niceboy05 ...
Try running Turbo C Compiler using Compatibility mode in Window and See if it helps.
it doesnt work....
Reputation Points: 8
Solved Threads: 2
Junior Poster in Training
alvalany is offline Offline
61 posts
since Jul 2009
Aug 11th, 2009
0

Re: graphics.h in c

Click to Expand / Collapse  Quote originally posted by Luckychap ...
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]
Reputation Points: 8
Solved Threads: 2
Junior Poster in Training
alvalany is offline Offline
61 posts
since Jul 2009
Aug 11th, 2009
0

Re: graphics.h in c

Sorry got no clue.

But may this will help: http://support.microsoft.com/kb/245184
Reputation Points: 83
Solved Threads: 61
Posting Pro in Training
Luckychap is offline Offline
442 posts
since Aug 2006
Aug 11th, 2009
0

Re: graphics.h in c

********problem solved using dosbox********
Reputation Points: 8
Solved Threads: 2
Junior Poster in Training
alvalany is offline Offline
61 posts
since Jul 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: sizeof(long double) problem
Next Thread in C Forum Timeline: Binary Search Tree problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC