Hi, I tried to compile below program with Borland C++ 5.0 program but i received subject error.
Below is not complete program as it is long program.
I think "graphics.h" has some problem. Please help me.

#include<iostream.h>
#include<graphics.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<iomanip.h>

struct date_rec
{
short int dd;
short int mm;
int yyyy;
}due_date,current_date;

#include<iostream.h>
#include<graphics.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<iomanip.h>

Thanks,
Ahmed

when using 32-bit programs you have to forget about what you learned with old 16-bit compilers. It ain't gona work. They don't support anything in graphics.h or dos.h. You will probably have to do a 90% rewrite of that program you want to compile.

If you want to do ms-windows programming then use win32 api functions. Here is a short into tutorial, but it does not touch on drawing.

Member Avatar for iamthwee

I'd definitely go for Ancient Dragon's suggestion.

U could choose whatever you want

You missed 2 letters...

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.