Na veel gefrutsel heb ik het eindelijk voor elkaar gekregen om Win BGI te laten werken...
Ik typ in (Borland C++ Compiler 5.5) : bcc32 mijnbestand.cpp winbgi.cpp
Hij compileert goed en ik vier het programma uit!
Maar in mijn (nogal kleine) programma staat dat de achtergrondkleur wit moet zijn:
#include "graphics.h"
#include <conio.h>
void main(){
int driver = VGA, mode = VGAHI;
initgraph( &driver, &mode, "..\\bgi" );
setbkcolor( WHITE );
setcolor( RED );
line(10,10,20,20);
getch();
closegraph();
}
Maar de achtergrond is ZWART!! ?? Weet iemand hoe dit komt?
Alvast bedankt

Ik typ in (Borland C++ Compiler 5.5) : bcc32 mijnbestand.cpp winbgi.cpp
Hij compileert goed en ik vier het programma uit!
Maar in mijn (nogal kleine) programma staat dat de achtergrondkleur wit moet zijn:
#include "graphics.h"
#include <conio.h>
void main(){
int driver = VGA, mode = VGAHI;
initgraph( &driver, &mode, "..\\bgi" );
setbkcolor( WHITE );
setcolor( RED );
line(10,10,20,20);
getch();
closegraph();
}
Maar de achtergrond is ZWART!! ?? Weet iemand hoe dit komt?
Alvast bedankt

