xp .. every thing should work fine.
borland C 3.0 .. isn't it called Turbo C++ 3.0?
anyways .. for making things work, as I have already told you. you just need to change the third parameter of the initgraph function. This is what your function should look like:
Code:
initgraph(&gdrive,&gmode,"d:\\tc\\bgi");
the job of the third parameter is to indicate the location of borland graphics interface (bgi) files, mainly egavga.bgi (the driver)
if you don't want to make this change you may also copy the files present in \\bgi folder to the output folder .. (probably the \\bin folder)
this should make it work