954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

graphics.h in c

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..

alvalany
Junior Poster in Training
61 posts since Jul 2009
Reputation Points: 8
Solved Threads: 2
 

>>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.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

>>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!!!

alvalany
Junior Poster in Training
61 posts since Jul 2009
Reputation Points: 8
Solved Threads: 2
 

> 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.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

Can you post the code that result in termination.

Luckychap
Posting Pro in Training
444 posts since Aug 2006
Reputation Points: 83
Solved Threads: 61
 

Try running Turbo C Compiler using Compatibility mode in Window and See if it helps.

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


it doesnt work....

alvalany
Junior Poster in Training
61 posts since Jul 2009
Reputation Points: 8
Solved Threads: 2
 
Can you post the code that result in termination.

[CODE=C]#include

#include
#include
#include
#include
#include


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]

alvalany
Junior Poster in Training
61 posts since Jul 2009
Reputation Points: 8
Solved Threads: 2
 

Sorry got no clue.

But may this will help: http://support.microsoft.com/kb/245184

Luckychap
Posting Pro in Training
444 posts since Aug 2006
Reputation Points: 83
Solved Threads: 61
 

********problem solved using dosbox********

alvalany
Junior Poster in Training
61 posts since Jul 2009
Reputation Points: 8
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You