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

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

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

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

Can you post the code that result in termination.

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

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

it doesnt work....

Can you post the code that result in termination.

#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);


    }

#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);



}

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.