TC++ is 16-bits and 16-bits programs are not fully Windows 2000/XP/Vista/7 compatible. Windows emulates the older 16-bits environment using "NVTDM", but direct hardware access is (by design) still not possible (which is - besides unhandled program exceptions - the main cause for such error messages).
The only - structural - solution is to get a more modern 32 bits C++ compiler instead of TC++. You can find a list of free 32 bits Windows compilers here:
http://www.thefreecountry.com/compilers/cpp.shtml
You might have to adapt the existing C++ code a little to the new compiler you choose.
When you really want to continue using TC++ you could use try the free "DOSBox" emulator (which has pretty accurate DOS emulating,. much better than Windows itself) or create a virtual machine with DOS or Windows 3.11 ...
×