Description: Attached please find a sample code, showing how to make a long running task into some steps to make the active objects more cooperatively. The technic is very useful when an application wants to make it more responsive to the UI while keeping a long running task to run.
The sample code does not use thread. In stead, it uses active object to do it.
File list (Check if you may need any files):
ActiveObj\ActiveObj.suo
.........\data
.........\....\ActiveObj.rls
.........\....\ActiveObj.rss
.........\....\ActiveObj_reg.miflist
.........\....\ActiveObj_reg.rss
.........\....\sortdata_in.dat
.........\....\sortdata_out.dat
.........\gfx
.........\...\qgn_menu.svg
.........\group
.........\.....\ActiveObj.mmp
.........\.....\bld.inf
.........\inc
.........\...\ActiveBubbleSorter.h
.........\...\ActiveObj.hrh
.........\...\ActiveObj.pan
.........\...\ActiveObjapplication.h
.........\...\ActiveObjappui.h
.........\...\ActiveObjappview.h
.........\...\ActiveObjdocument.h
.........\...\BubbleSortNotify.h
.........\sis
.........\...\ActiveObj.pkg
.........\src
.........\...\ActiveBubbleSorter.cpp
.........\...\ActiveObj.cpp
.........\...\ActiveObjapplication.cpp
.........\...\ActiveObjappui.cpp
.........\...\ActiveObjappview.cpp
.........\...\ActiveObjdocument.cpp
.........\...\AOLabBubbleSort.cpp
ActiveObj