Windows.h in C using Turbo-C

笑着哭i 提交于 2019-12-18 07:05:54

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!