How to add Active Object to the Active Scheduler
Article Metadata
Gui Application provides active schedulers, so you just need to call the add method of the active scheduler.
// Adding the Active Object ( Class derived from CActive ) to scheduler
CActiveScheduler::Add(this);
In Non-Gui applications ( exe's in 2nd edition ), you need to create and install the active scheduler by your own.
// Creating Active Scheduler
CActiveScheduler* Scheduler = new ( ELeave ) CActiveScheduler;
CleanupStack::PushL( Scheduler );
//Installing Active Scheduler
CActiveScheduler::Install( Scheduler );
Internal Links:


(no comments yet)