IMSI codes

Login to reply to this topic.
Mon, 2005-11-28 07:28
Joined: 2005-11-28
Forum posts: 18
Hi guys,
Pls help me with this:
  where can i add these code to my program?

TRequestStatus iStatus;
CTelephony::TSubscriberIdV1 iSubscrId;
...
CTelephony telephony = CTelephony::NewL();
CTelephony::TSubscriberIdV1Pckg subscrIdPckg(iSubscrId);
telephony->GetSubscriberId(iStatus, subscrIdPckg));
...
TPtrC theIMSI(iSubscrId.iSubscriberId);


  I have added them to .cpp file, but it doesnt work.
   Any commend?

Mon, 2005-11-28 10:13
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2006
Re: IMSI codes
GetSubscriberId() is an asnchronous function. This means that the result is not available immediatly after the function exits. Pack your call within an active object or use a primitive like User::WaitForRequest().

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

  • Login to reply to this topic.