Article View: att.lang.c++
Article #224anyone know how to solve it?
From: cikare
Date: Thu, 15 Oct 1998 00:00
Date: Thu, 15 Oct 1998 00:00
43 lines
1508 bytes
1508 bytes
Hi, Newsgroup:
The purpose I write this message is want to ask
for help. I was quite new to learn the C++ programming. Now I am trying to
write a program which need to use graphics. I was using Borland C++ now.
And I already try a program which using the <graphics.h> header file. Just
like the program below.
#include<conio.h>
#include<graphics.h>
int main()
{
clrscr();
int driver, mode;
driver = DETECT;
mode = 0;
initgraph(&driver, &mode,"c:\\bc5\\bgi");
setcolor(WHITE);
are(100, 100, 0, 90, 20);
getch();
restorecrtmode();
return 0;
}
When the time I try to compile the file the following error message coming
out.
graphics.h( 19,52) : Error directive: BGI graphics not supported under
Window.
I totally no ideal about it. Any body who have experience in programming
can you tell me who to write a graphics program. Or anyone got the
solution about my problem please tell me. Thank you.
Your help is appreciated .
My email is : wfh5830@hotmail.com
Thank you.
Technical Details
Message-ID:
<01bdf7a3$a34e75c0$9a14bcca@default>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4ba,a485a781dba902aa,start X-Google-Attributes: gid10d4ba,public From: "cikare" <wfh5830@hotmail.com> Subject: anyone know how to solve it? Date: 1998/10/15 Message-ID: <01bdf7a3$a34e75c0$9a14bcca@default> X-Deja-AN: 401057918 X-NNTP-Posting-Host: 202.188.95.15 X-Trace: 15 Oct 1998 01:55:09 +0800, klg-56-181.tm.net.my Organization: TMnet Malaysia Newsgroups: att.lang.c++