Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending a phone call
Message
De
13/07/2001 11:29:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/07/2001 09:57:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00530220
Message ID:
00530298
Vues:
22
>I'm new to MSCOMM32. I took some example by doing some searches. I simply what to dial a phone number. I have this code presently:
>
>
>oPhone=CREATEOBJECT('Form')
>oPhone.AddObject('Phone','Olecontrol','MSCOMMLib.MSComm')
>oPhone.Phone.CommPort=1
>oPhone.Phone.PortOpen=.T.
>oPhone.Phone.Output='ATDT123-4567'+CHR(13)
>oPhone.Phone.PortOpen=.F.
>
>
>When I run the program, I see the light changing on my modem but nothing happens. What am I missing?

Michel,
If what you intend is to invoke dilaer you could use this routine :
Declare long tapiRequestMakeCall IN "tapi32.dll" ;
 string lpszDestAddress, ;
 string lpszAppName, ;
 string lpszCalledParty, ;
 string lpszComment
RtnVal = tapiRequestMakeCall(lcPhone, 0,0,0)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform