如何添加一个计时器到我的C ++的项目? [英] How do I add a timer to my C++ project?
本文介绍了如何添加一个计时器到我的C ++的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有我的C ++的项目,我想一个事件来加载自己的状态后,开始40秒。我知道有在C ++中一个计时器,但它只能显示时间间隔。
I have my C++ project, and I want an event to start 40 seconds after my form is loaded. I know there is a timer in C++, but it only shows intervals.
我使用Visual Studio 2008中我创建一个Windows窗体应用程序。难道你们知道我有什么功能使用?
I'm using Visual Studio 2008. I'm creating a Windows Form Application. Do you guys know what function I have to use?
推荐答案
设置使用40几秒钟内,并删除计时器,当它第一次触发。定时器
Setup the timer using a 40 seconds interval and remove the timer when it's first triggered.
这篇关于如何添加一个计时器到我的C ++的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文