Write your question here.
why does not Windows.h dont work in turbo borland
You should try and get a modern compiler.
i am using but why not it works in Turbo.....!!
What do you mean? Borland is from the 90s AFAIK. I would suggest like mingw or a different compiler. Or maybe even get the newest version of Borland.
The turbo c++ compiler's libraries doesn't have the windows.h header file. Hence, it does not work...
Turbo C++ and Borland don't use windows.h and turbo also isn't compatible with the latest C++11 standard
that's what you are supposed to use in the 2013 if you are under Windows
The original Borland stuff is ancient - however I'm led to believe that some education in programming still requires its use. That's a frustrating situation to have to deal with.

Certainly given a free choice, it is better to avoid anything that old, as you end up learning how to do things in a non-standard way, which is not a good way to start out.
Last edited on
It is unfortunate that many people in India and the Middle East are stuck using software that is very old. Many people go to school to learn computer programming, or get a job to do it, and are actually required to use things like the ancient Turbo C++ 4.0 or the like.

Sadly, those compilers, while excellent for their time, are not compatible with the current state of the art. They are designed for 16-bit Windows systems; they are non-standard; they frustrate people like the OP because they don't work the way people on the net say C++ should work.

Unfortunately options are slim if you stick with a compiler that old.

1) The best thing you can do is convince your school's CS department chair or employer or whoever that it is worth their time to get a modern compiler. Both Microsoft VC++ and GCC (MinGW) toolchains are excellent and free. You can continue to compile legacy code with the older compiler -- it will still work -- but also write new code with the new compiler.

2) Modify your compiler to approximate modern methodologies. Yes, you can find stuff to give you "windows.h" and more modern versions of the STL (to some degree) using the older compilers, but they will never be quite the same -- there will always be an obvious problem with them. In some cases this is your only option. But it does require you to hack at your compiler in ways that may destabilize it -- meaning you'll break some other project that used to compile with it. Alas.

Sorry for the long answer. I should put this in the FAQ since it is a continuing problem over there. Sorry we don't have a better answer than "get yourself a real compiler," but at least you know why we say that. VC++ really is very nice, and free. Check out this article for a list of links to good compilers:

Hope this helps.
Yep, what duoas said is quite right, i noticed
my school too uses that ancient compiler , now that i am picking computer science as one of my subject the first i will do is to convince my teachers to wipe that crap out.

as everybody said get rid of that obsolete piece of crap(however good it might be at its era,its just not for today)
Last edited on
Topic archived. No new replies allowed.