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

Aleniko


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

AndyKr

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
http://support.microsoft.com/kb/139526

How to transmit and receive binary data by using the VFP MSComm32 control
http://support.microsoft.com/kb/154741

MarshallSoft DUN Dialer for Visual FoxPro
http://www.marshallsoft.com/mdd4fp.htm






Re: calling someone

Martin2006

Hi:

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

Here is the snippet:

LOCAL oPort
oPort = CLRCreateObject("system::IO::Ports::SerialPort","com4")
oPort.Open()
IF oPort.IsOpen
oPort.Write("ATD 555 4321")
DEBUG
SET STEP ON
oPort.Close()
ENDIF

Visit eTecnologia.net to download a trial.

I hope this help you