void __stdcall StartFrame();
You need call it in every frame, if you use the dddengine timers, or animations, or input functions, or video streams. This fucntion refresh the timers, and the input data like keyboard..