Sunday, January 17, 2016

This code What Is Wrong?




            


TBuf8 & lt; 20 & gt; phone_id;
CTelephony * ty = CTelephony :: NewL ();
CleanupStack :: PushL (ty);
TRequestStatus aReqStatus;
ty- & gt; GetPhoneId (aReqStatus, phone_id);
CleanupStack :: PopAndDestroy (ty);
Reply:
Asynchronous methods have a problem so write it:
ty- & gt; GetPhoneId (aReqStatus, phone_id);
CleanupStack :: PopAndDestroy (ty);

PopAndDestroy (ty) when an asynchronous request is not necessarily complete ......
Reply:
Also, you did not see SetActive ()?
Reply:
Less User :: WaitForRequest (aReqStatus);
Reply:
Ha ha. Write an active object, package this interface, or as upstairs said, using the synchronization method to do it.

This is an asynchronous function.
Reply:
Refer
http://www.sf.org.cn/symbian/network/symbian_19908.html
http://www3.symbian.com/faq.nsf/0/8DA91C7B8610E79980256F0800547B5C?OpenDocument
Reply:
On the top floor.

No comments:

Post a Comment