I did that, and i used that. this this the code fragment that i use.
is there a way where i can circumvent this method? I meant that the only way i can make sure something happens every 100ms is to put my codes at ** instead of at *. Now, for short codes I wouldn't mind, but the bulk(hundreds of lines) of my codes depend upon it executing every 100ms. is there anyway that i could put my codes in * and still it executes every 100ms??Code:void ???::OnTimer(UINT nIDEvent) {... switch (nIDEvent) { case ID_CLOCK_TIMER break; case ID_COUNT_TIMER //** //the only place (that i know of) that executes once every 100ms m_iCount++; break; } UpdateData(FALSE); ... } ... void ???::OnSimulate() { //* m_iCount=0; SetTimer(ID_COUNT_TIMER, 100, NULL) }




Reply With Quote