🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by cikare Thu, 15 Oct 1998 00:00
anyone know how to solve it?
#224
Author: cikare
Date: Thu, 15 Oct 1998 00:00
43 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads