找不到用于使用CreateEventEx编译的包含文件 [英] cannot find what include file to use to compile with CreateEventEx

查看:117
本文介绍了找不到用于使用CreateEventEx编译的包含文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在C ++项目中使用CreateEventEx。但是我无法使用包含文件。

I would like to use CreateEventEx in a C++ project. But I cannot fine the include file to use.

推荐答案

包括

Include
#include <windows.h>





有关详细信息,请参阅: http://msdn.microsoft.com/ en-us / library / windows / desktop / aa383745(v = vs.85).aspx [ ^ ]。



- SA


如果您从Microsoft查找API的Web帮助(例如,这里 [ ^ ]),几乎总有一个标题部分,在此链接显示

If you look up the web help for the API from Microsoft (eg. here[^]), there is almost always a "header" section, which at this link shows
Quote:



Windows Vista,Windows 7,Windows Server 2008和Windows Server 2008 R2上的WinBase.h(包括Windows.h);

Windows 8和Windows Server 2012上的Synchapi.h


WinBase.h on Windows Vista, Windows 7, Windows Server 2008, and Windows Server 2008 R2 (include Windows.h);
Synchapi.h on Windows 8 and Windows Server 2012



这意味着它包含在windows.h中,直到Windows 7,并且需要来自Windows 8的synchapi.h以及。


which means that it is included with windows.h up to Windows 7, and needs synchapi.h from Windows 8 and beyond.


这篇关于找不到用于使用CreateEventEx编译的包含文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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