Namespaces
Variants
Actions
Revision as of 06:14, 26 July 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to add Active Object to the Active Scheduler

Jump to: navigation, search
Article Metadata

Article
Created: User:Kanu123 (29 Jun 2007)
Last edited: hamishwillee (26 Jul 2012)

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:

96 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved