void CScaricoView::OnTimer(UINT nIDEvent) // called every uElapse milliseconds { // do something, but quickly GetDocument()->Prova(); CScaricoView::OnTimer(nIDEvent); }
void CScaricoDoc::Prova() { int pp = 5; }
Quote:void CScaricoView::OnTimer(UINT nIDEvent) // called every uElapse milliseconds { // do something, but quickly GetDocument()->Prova(); CScaricoView::OnTimer(nIDEvent); <-- PROBLEM HERE }
OnTimer
void CScaricoView::OnTimer( UINT_PTR timertId ) { if( timerId == MyTimerId ) // handle only YOUR timer event, not all of them { // handle timer event } __super::OnTimer( eventId ); // let base class have its shot at it }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)