" WINDOWS.H" Visual C ++中的可用性 [英] "windows.h" availability in Visual C++

查看:55
本文介绍了" WINDOWS.H" Visual C ++中的可用性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual C ++中是否提供了windows.h头文件?如果不是我在哪里可以得到它,可以下载吗?

Is windows.h header file available in Visual C++? If not where can I get it, can it be downloaded?

推荐答案

它可用,但这不仅仅是包含文件。



包含头文件本身不会使库可访问。您还需要链接它们。使用Visual Studio,您可以使用可用的Win32相关项目模板之一设置所有适当的选项(特别是告诉编译器和链接器查找某些目录中的某些文件)。如果您从模板创建项目,则会为您设置所有项目。然后你可以查找链接器和编译器选项并找出它的位置。



确保正确包含头文件。对于windows.h,它应该是:

It is available, but this is not just the include file.

Including a header file itself does not make libraries accessible. You also need to link them. With Visual Studio, you can set all appropriate options (in particular, telling the compiler and the linker to look for certain files in certain directories) just by using one of the available Win32-related project template. If you create a project from a template, everything will be set for you. Then you can look for linker and compiler options and find out where it what.

Make sure you include the header files correctly. For "windows.h" it should be:
#include <windows.h>
// NOT '#include "windows.h"' as this is a "system" directory





请参阅: http://en.wikipedia.org/wiki/Windows.h [ ^ ]。



-SA


这篇关于&QUOT; WINDOWS.H&QUOT; Visual C ++中的可用性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆