Re: [fpc-pascal] help with serial.pp unit please

2007-12-14 Thread Musan Antal
> //Hide; > ShowMessage('Pick up the phone.' + #13 + 'Click OK after > dialing has completed.'); > s := 'ATH^M^J'; I think you'll better use s:='ATH'^M^J; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:

Re: [fpc-pascal] help with serial.pp unit please

2007-12-13 Thread Graeme Geldenhuys
On 13/12/2007, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > status := SerWrite(serialhandle, s, Length(s)); > if (status <> Length(s)) then bark; > > should be appropriate. Thanks Marc. Now the major problem. Finding a computer with a modem! :-) Regards, - Graeme - ___

Re: [fpc-pascal] help with serial.pp unit please

2007-12-13 Thread Marc Santhoff
Am Donnerstag, den 13.12.2007, 09:22 +0200 schrieb Graeme Geldenhuys: > Hi, > > I'm trying to write a Phone Dialer feature in my application. I > managed to do this a long time ago in a Delphi app using Windows API > calls, but now I need it for Linux and Windows. Unfortunately the > serial.pp u

Re: [fpc-pascal] help with serial.pp unit please

2007-12-13 Thread Graeme Geldenhuys
On 13/12/2007, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > s := 'ATH^M^J'; > > Shouldn't you use the relevant #xxx chars here? Oops! You are right. I also noticed that I was using SerWrite() wrong. The third parameter is not a 'out' parameter as I assumed! status := SerWrite

Re: [fpc-pascal] help with serial.pp unit please

2007-12-13 Thread Marco van de Voort
> //Hide; > ShowMessage('Pick up the phone.' + #13 + 'Click OK after > dialing has completed.'); > s := 'ATH^M^J'; Shouldn't you use the relevant #xxx chars here? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://