简体   繁体   English

我该如何在C ++中做一个事件?

[英]How I can do an event in c++?

Well, sorry if my english isn't very good, second, in c++ how i can make events?, is something that i can't find as much i searched, and i think that it could help me a lot to make me the things a little easier with the college. 好吧,很抱歉,如果我的英语不太好,其次,在C ++中我该如何进行事件?,这是我所找不到的东西,我认为这对我有很大帮助。大学的事情要容易一些。

Thanks for your answers. 感谢您的回答。

If you are looking for the type of "events" whereby clients can set up callbacks to themselves when things happen, check out the Boost Signals2 Library . 如果您正在寻找“事件”的类型,客户端可以在事件发生时自行设置回调,请查看Boost Signals2库

If you are looking for the Win32 "event" synchronization object, see the MSDN documentation . 如果您正在寻找Win32“事件”同步对象,请参阅MSDN文档

Also check out Custom events in C++ . 还要检查C ++中的Custom事件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM