Here's a wild stab in the dark: you are using a really old compiler like Turbo C.
If I'm right, then you should visit one of the following and get yourself a compiler that makes 32-bit executables:
http://www.mingw.org/
http://www.turboexplorer.com/
http://www.microsoft.com/express/vc/
Hope this helps.