×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    Retrieve IMSI on 7610 problems

    Hi. Im just a new developer to symbian c++.

    im trying to retrieve the IMSI number on a nokia 7610.

    im using the code found here:
    http://www3.symbian.com/faq.nsf/0/8D...C?OpenDocument

    an error keeps coming out when i try to compile at this line:

    CTelephony telephony = CTelephony::NewL();

    the error returned is, "Conversion from CTelephony* to non-scale type 'CTelephony requested"

    what error is it? i do not know how to solve it. i have included the etel3rdparty.h and linked the etel3rdparty.lib. im using codewarrior personal 2.8 here. and using the series 60 sdk version 2, FP1. please help. thanks.

    edit: i fixed it by usign the following line instead:
    CTelephony* telephony = CTelephony::NewL();

    i am not sure if this is the way to do it but i will test it on the 7610 and post again.
    Last edited by degree1911; 2005-06-06 at 16:36.

  2. #2
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    328
    Try this:

    TPlpVariantMachineId id;
    PlpVariant::GetMachineIdL( aId )

    The example you were looking at is for Symbian OS 8.0 and the 7610 is running Symbian 7.0s - this could be the problem?

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    10
    hmm. but isn't GetMachineID for the IMEI number. im trying to get the IMSI. the sim card no.

  4. #4
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    328
    oops sorry, misread that bit, you are right this will give you the IMEI number and NOT the IMSI.

  5. #5
    Registered User
    Join Date
    Jun 2005
    Posts
    10
    the problem still lies with this line. im sure it should work with series 60 v2 FP1 & above.

    CTelephony telephony = CTelephony::NewL();

    This is the exact error returned:

    Error : conversion from `CTelephony *' to non-scalar type `CTelephony' requested
    HELLOWORLDPLUSAPPUI.cpp line 74

    Error : base operand of `->' has non-pointer type `CTelephony'
    HELLOWORLDPLUSAPPUI.cpp line 76

    Error : Compile failed


    (yes, im using the helloworldplusappui because im so new, i don't even know how to write my own program from scratch with a simple gui. help!!!!!)

    but once i change the line to

    CTelephony* telephony = CTelephony::NewL();

    it compiles on the ARMI target but the application doesn't work. The Full code im supposed to use is:


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

    TPtrC theIMSI(iSubscrId.iSubscriberId);

    CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
    informationNote->ExecuteLD(theIMSI);


    and line 76(the line with the other error) is this telephony->GetSubscriberId(iStatus, subscrIdPckg);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×