how to get accuracy as well as quick interface response
-
i need accuracy as well as i have to interact several time with user interface .if i use multimedia timer for accuracy then it slows my interface response.how could i achieve both accuracy as well as quick response from interface?? i read about queue timer form msdn that it is accurate as well as do not stop window messaging .but when i used this,this is n't accurate..
-
i need accuracy as well as i have to interact several time with user interface .if i use multimedia timer for accuracy then it slows my interface response.how could i achieve both accuracy as well as quick response from interface?? i read about queue timer form msdn that it is accurate as well as do not stop window messaging .but when i used this,this is n't accurate..
If you want a responsive interface while doing some other activity at the same time no matter what that activity is, then you want to run the other activity in a different thread to the UI. If you're using MFC, look up "worker threads" in the help. That should get you started. Be warned, though - multi-threaded programming isn't easy. There are lots of pitfalls - deadlocks, bad synchronisation etc. Don't try anything too fancy, just keep your code simple.
-
If you want a responsive interface while doing some other activity at the same time no matter what that activity is, then you want to run the other activity in a different thread to the UI. If you're using MFC, look up "worker threads" in the help. That should get you started. Be warned, though - multi-threaded programming isn't easy. There are lots of pitfalls - deadlocks, bad synchronisation etc. Don't try anything too fancy, just keep your code simple.