Sunday, August 17, 2008

CActive Object Example

CActive Objects example demonstrates how to use CActive Objects.

.mmp
LIBRARY euser.lib

.h
Include this e32base.h
class CActiveExample: public CActive
virtual void RunL();

.cpp
CActiveExample::CActiveExample():
CActive(CActive::EPriorityStandard) //Init the active object in constructor

CActiveScheduler::Add( this ); //Starts the active scheduler

//Make the asynchronous call
SetActive();//Sets the active object

Implement RunL() method.

Destructor add Cancel();

No comments: