0

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

5
Contributors
9
Replies
10
Views
8 Years
Discussion Span
Last Post by alvalany
0

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

0

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

0

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

0

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

0

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

it doesnt work....

0

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



}

Edited by Dani: Formatting fixed

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.