问题
I cannot find windows.h in my include folder of Turbo C and hence cannot work with the Win32 api's
Can someone please suggest a workaround?
thanks
回答1:
You could download Borland C++ 5.5. If memory serves, it can handle Windows programming "out of the box" (Warning: but it doesn't include an IDE of any kind, only command-line tools).
Alternatively, you could look into any of several alternatives such as Dev-C++, Visual Studio Express, Cygwin, or Digital Mars. Edit: Or Code::Blocks, Ultimate++/TheIDE, NetBeans, or Eclipse CDT.
回答2:
Turbo C is a legacy product. I would suggest moving on.
However, the Windows libraries and header files are shipped with the Windows SDK, which you can find on MSDN.
回答3:
If you want to work with Win32 APIs, you will probably get the best mileage using Visual Studio (which will have all of the headers and libraries you need). There is even a free edition available.
来源:https://stackoverflow.com/questions/3134224/windows-h-in-c-using-turbo-c