look at the follwing code .
initgraph(&gd,&gm,"c:\\tc\\bgi"); // remember there is no bgi
// files in borland c++ 5.5
setcolor ( RED);
line ( 25,25,100,25);
can any body suggest how to compile this code in windows based compilers such as borland c++ builder, dev-c++ etc .