why cannot get phoneNumber?

Hi,

i run the project:

\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\CPP\Win32\Getphonenumber

on my Mobile phone based on smartphone ,

but it return NULL,

it can not get the phone number

why

Thanks.




Answer this question

why cannot get phoneNumber?

  • Josip Orec

    oysts wrote:

    The phone number can be stored on the SIM card. Most operators don't store it by default....That's why the sample code in the SDK "Does not work" :)

    Oystein

    Thanks,oysts.

    if the number stored in the SIM Card, how to get it

    Does the '' SDk" sample supposed the number is stored in the SIM Card

    Does you mean the number may not be stored in the mobile



  • André_Silva

    The phone number can be stored on the SIM card. Most operators don't store it by default....That's why the sample code in the SDK "Does not work" :)

    Oystein


  • KitGreen

    If the number is stored in the SIM card, the sample code from the SDK will work. There is no easy way of finding the users phone number. We usually send a sms message to our server.....

    Oystein


  • Jupi

    Thanks, i get it.

  • why cannot get phoneNumber?