PC Review


Reply
Thread Tools Rate Thread

.net Compact Framework question on loading phone APIs

 
 
Sirfalas
Guest
Posts: n/a
 
      14th Jun 2005
Hi.

I am using the .net compact framework(using vb.net) to develop for
phones running on windows mobile 2003. Particularly my Xphone for now
but as i get more familiar, i'll develop it for all the devices.

But what i need to know is, how do i access the phone API's? I find
there are some files with names like phone.lib but when i search for
examples, they keep telling me to do a dllimport(core.dll) or
dllimport(phone.dll). But these dll files don't exist anywhere in the
first place. i did a search for them on my harddrive but i can't find
it so how am i supposed to import these APIs.

Someone help. Thank you.

 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      14th Jun 2005
From .NETCF code you can Platform Invoke (P/Invoke) the various
Phone/SMS/SIM API functions. However you'll find this has already been done
in the OpenNETCF.Phone.dll (part of the SDF - www.opennetcf.org/sdf/) or if
you just want the basic phone support as found in the new Windows Mobile
v5.0 APIs you could use the InTheHand.WindowsMobile.Telephony.dll assembly
in this free package (http://www.inthehand.com/windowsmobile.aspx)

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org

"Sirfalas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi.
>
> I am using the .net compact framework(using vb.net) to develop for
> phones running on windows mobile 2003. Particularly my Xphone for now
> but as i get more familiar, i'll develop it for all the devices.
>
> But what i need to know is, how do i access the phone API's? I find
> there are some files with names like phone.lib but when i search for
> examples, they keep telling me to do a dllimport(core.dll) or
> dllimport(phone.dll). But these dll files don't exist anywhere in the
> first place. i did a search for them on my harddrive but i can't find
> it so how am i supposed to import these APIs.
>
> Someone help. Thank you.
>



 
Reply With Quote
 
Sirfalas
Guest
Posts: n/a
 
      15th Jun 2005
thanks. i am checking out the 'inthehand' APIs. I have the opennet
compact framework v1.2. but for some reason, it doesn't seem to work
properly.

1) I use the 'GetDeviceID' in opennetCF to get the imei number but
when i put it on my phone, i just get something like
0000111-01110-111011-111000. What's wrong?

2) If i want to just access the phone details like the IMEI and Sim
Card functions, what API would i need?

3) I heard that in the mobile 5.0 APIs, stuff like the IMEI can be
retrieved easily without requiring App signing. Is that true as well?

Thanks for the prompt help. I really appreciate it.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compact Framework Phone Function KA Kueh Microsoft Dot NET Compact Framework 2 31st Dec 2008 05:48 AM
Re: Compact Framework Phone Function KA Kueh Microsoft Dot NET Compact Framework 2 29th Dec 2008 03:42 AM
Game map loading in Compact Framework Hendro.Wijaya@gmail.com Microsoft Dot NET Compact Framework 1 7th Feb 2006 11:41 PM
Compact Framework and Phone API Questions. Help! Sirfalas Microsoft Dot NET Compact Framework 7 20th Jun 2005 08:51 PM
Re: Loading .net Compact Framework problem in windows CE .net 4.1 Derek Ou Microsoft Dot NET Compact Framework 0 11th Aug 2004 11:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:17 PM.