OpenNETCF GetPhoneNumber and native TAPI (EVC) both not working.

Z

zenone

Hi all,

Currently working on a project, one requirement is: get phone number of
SIM card.
At the moment my application uses the TAPI library of Alex Feinmann (I
hope I wrote the name right).

MSDN site has a great sample on how to retrieve the phone number. Even
an working example. But for here (Europe|Netherlands) its not working.
I always receive empty PhoneRecord back.

The calls are made with:

// from example MSDN, wrapper -> not working
Microsoft.Wireless.PhoneAddress p =
Microsoft.Wireless.Sim.GetPhoneNumber();

// from opennetcf -> also not working
OpenNETCF.Phone.Sim.Sim s = new OpenNETCF.Phone.Sim.Sim();
OpenNETCF.Phone.Sim.Phonebook p3 = s.EmergencyNumbers;
OpenNETCF.Phone.Sim.Phonebook p2 = s.OwnNumbers;

Somewhere I read that it may be operator dependant, can someone confirm
this please? Or maybe have someone a suggestion? Last but not least, i
also tried it with EVC++ with error -2147467259 means "Unspecified
error".

Peter Foot has replied also about sort like problem, see:

http://groups.google.nl/group/micro...=getphonenumber+error&rnum=2#22d53a843aa24137

Thanks.

BR,
Zen
 
P

Peter Foot [MVP]

What type of device are you running it on? Its possibly a security issue as
your device may require your code to be signed to access the SIM card
data...

Peter
 
Top