B
Bill Code
The example code was just to show something, see other posts.
while (1) {
Sleep(1000);
}
In a real application the loop would be something like.
while (1)
{
::WaitForSingleObject( hEvent, MILLISECONDS ); // will run
every MILLISECONDS if ( bExit )
return 0;
// control stuff.
}
Bill Code
MPM Engineering Ltd.
4-6240 202nd St., Langley, B.C., Canada, V2Y-1N2
Phone: 604-534-6605 Fax: 604-534-6693
E-Mail: [email protected] WWW: http://WWW.MPM-
ENG.COM
while (1) {
Sleep(1000);
}
In a real application the loop would be something like.
while (1)
{
::WaitForSingleObject( hEvent, MILLISECONDS ); // will run
every MILLISECONDS if ( bExit )
return 0;
// control stuff.
}
Bill Code
MPM Engineering Ltd.
4-6240 202nd St., Langley, B.C., Canada, V2Y-1N2
Phone: 604-534-6605 Fax: 604-534-6693
E-Mail: [email protected] WWW: http://WWW.MPM-
ENG.COM