Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending a phone call
Message
From
13/07/2001 11:29:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/07/2001 09:57:50
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00530220
Message ID:
00530298
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform