Has anyone used TAPI in ebasic? I am trying to create a program that will receive a parameter of phone number and then dial that number through a PABX using TAPI. I have done it in VB but the declerations of TAPI and its functions are confusing me. Any help would be greatly appreciated.
Install the SDK headers and start with this line :D$include "tapi.inc"
If you stuck somewhere, let us know.
Thanks for that. I'll give it a go.
' Demo on how to use the phone dialer via API
' http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5conTelephonyAPITAPI.asp
'
' Ibasic pro code
' before you can run this program you need to make an inport library for TAPI32.DLL
' (menu Tools, create import library. then select "TAPI32.DLL")
$USE "tapi32.lib"
DECLARE IMPORT, tapiRequestMakeCall(Dest:STRING,AppName:STRING,CalledParty:STRING,Comment:STRING), Int
DEF sPhoneNum,sTitle,sBuddy,sComment:STRING
sPhoneNum = "555-5555"
sTitle = "Personal Phone book"
sBuddy = "Pizza Palace"
sComment = "No Anchovies!"
' a return <> 0 indicates a failure
res = tapiRequestMakeCall(sPhoneNum, sTitle, sBuddy, sComment)
I did it ;D
I have managed to create a program that accepts the phone number and then dials it.
If anyone is interested here it is.
Thanks for sharing1
haim
That's What life is all about ;D