Re: [Dev-C++] Compiling errors using Borland Graphics Interface
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <ri...@un...> - 2003-09-16 14:44:48
|
I'm not sure but I think you should first to initialize the graphical mod=
e
with these sentences, for instance: (at least, in the past, I got to use=20
the
bgi library with success in dev-cpp),
********************************
int graphdriver =3D DETECT, graphmode;
initgraph(&graphdriver, &graphmode, "c:\\dev-cpp\\bgi");
if (graphresult() < 0) /* make sure initialized OK */
return;
// and here your graphical functions and code.
****************************************
and take care to include the correct header files:
#include <winbgim.h> /* For graphics library functions */
#include <stdlib.h> /* =BFFor kbhit( )? */
#include <stdio.h>
|