The simplest solution would be using a more modern
C/C++
compiler, like for instance
Microsoft Visual Studio Express Edition
(freely available).
Of course if you used the
BGI
then you have to heavily change your code or use, for instance,
"Win32 BGI implementation"[
^].