Fox Me Up

hi i want to be able to tell the modem to dial and certain number. my overall goal is to be able to have a call button in my client form.

Re: calling someone


Years ago I used Foxpro to open up the com port and dial.
Basicaly you use the low level file commands (like fopen) to open up the com port. Then you send modem commands like "ATDT" in order to fial up a phone #.

There may be better way to do this though.

Re: calling someone


You can use the Windows TAPI functions (Telephone API) to do this but it is quite complex and you really need to know what you are doing with it because the documentation is not great.

As a rule it is usually better (not to mention quicker and cheaper in the long run) to use commercially available tools for this sort of thing than to try and invent your own.

Re: calling someone

Carl Warner

I'm glad I don't have to concern myself over dialup any longer.

You may get some mileage out of how to use the MSCOMM32.ocx within VFP if you want to go that direction.

How to send to the serial port by using Mscomm32.ocx

How to transmit and receive binary data by using the VFP MSComm32 control

MarshallSoft DUN Dialer for Visual FoxPro

Re: calling someone



You could do it in VFP through .NET using .NET Extender for VFP.

Here is the snippet:

oPort = CLRCreateObject("system::IO::Ports::SerialPort","com4")
IF oPort.IsOpen
oPort.Write("ATD 555 4321")

Visit to download a trial.

I hope this help you