Thread: PhoneLib
View Single Post
  #1 (permalink)  
Old 05-01-2007, 09:32 PM
stbi stbi is offline
Junior Member
 
Join Date: Apr 2007
Location: Germany
Posts: 34
Default PhoneLib

My PhoneLib from the old forum ... can be used with PPC-smartphones to initiate phone calls and retrieve the call log. Only CF 1.0 required. Online help is included in the zip file. I added a new function to check the phone capability of the PDA.

Best wishes,
Stefan

Code:
Sub Globals
End Sub
 
Sub App_Start
 
    ' add and initialize a phone object
    AddObject("ph1", "Phone")
    ph1.New1
 
    ' query phonelib version
    MsgBox(ph1.PhoneLibVersion,"PhoneLib version")
 
    ' check phone capability
    MsgBox(ph1.PhoneAvailable,"Phone available")
 
    ' query number of call log entries
    x = ph1.NumCallLogEntries
    MsgBox(x, "Number of CallLogEntries")
 
    ' retrieve all call log entries
    if x > 0 then
        for y = 1 to x
            MsgBox(ph1.GetCallLogEntry(y),"CallLogEntry #" & y)
        next 
    end if        
 
    ' initiate a phone call
    if ph1.MakeCall("12345", "test", true) = false then Msgbox("Error", "MakeCall")
 
End Sub
Attached Files
File Type: zip PhoneLib.zip (12.5 KB, 277 views)
__________________
iPAQ 6515, MDA compact
Reply With Quote