Description: I compiled a program similar to the performance monitor on Windows 2000. In this program, I created a document object and several views. The document object is responsible for collecting data regularly and notifying the associated views to display the data in different formats. The document object needs a time (time) event to collect data regularly. However, a document is not a windows-based object, so it has no such timing events. I weighed three solutions: 1. Create a timer in one of the views. Notifies the document object for data when the event occurs. 2. Create a separate thread for each document (or within each document) so that the thread can create time events regularly. I am not satisfied with the three methods of creating a timer in CMainFrame and calling the document function from it. Could a better solution be given?
To Search:
- [applet3d] - Java 3d simple instance, display a 3d an
File list (Check if you may need any files):