So I’m developing an application that takes a picture after a countdown is complete. I’ve worked with the win32 timer in windows 7, but I have no clue on how to apply it in windows metro. I need some help or some sample code in c++ pertaining to how to trigger an event after a set amount of time expires.
Thanks in advance for your help
So I’m developing an application that takes a picture after a countdown is complete.
Share
In C++, declare the DispatcherTimer, and register one event handler on it.
DispatcherTimer class – http://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.dispatchertimer
http://msdn.microsoft.com/en-us/library/system.windows.threading.dispatchertimer.aspx
Sample code: