The main thread to create a package in the activities of the Vice-thread object class, smoothly written, 141 421.
/ / MyActive.h
class CMyActive: public CActive
(
public:
void DownloadL (const TDesC & aUrl); / /
protected:
void DoCancel ();
void RunL ();
private:
static TInt ThreadFunction (TAny * aArg);
private:
RThread iThread;
);
/ / MyActive.cpp
void CMyActive: DownloadL (const TDesC & aUrl)
(
/ / Create thread
iThread.Logon (iStatus); / / request to notify the Vice-thread exit the main thread.
SetActive ();
/ / ...
)
void CMyActive:: RunL ()
(
if (iStatus.Int () == KErrNone)
(
/ / Associate thread has been the normal exit
)
)
TInt CMyActive:: ThreadFunction (TAny * aArg)
(
/ / Download
)
Recommended links:
DVR-MS To MPG
SWF to MP4
"Rise" magician / Swordsman bred Guide
PPStream Channel Order To See My Favorite Trick
Tissot wave THROUGH the "Dakar"
PowerBuilder objects modified descendants
To seek the recovery of the ANNUAL ceremony to create win-win breakthrough stage IDC
Articles about Timers And TIME Synch
P2P problem is the contradiction between closed and open
High-Tech Fair booth solar sail grand Photo
Clipboard TOOLS reviews
Infomation Audio Video Tools
Test emergency response capacity of cities: urban emergency on THE road
how to upload put convert kodak playsport video to
Flash to MPEG
Jsp, Servlet Talk About Chinese Issues
No comments:
Post a Comment