Re: [fpc-pascal] serial.pp - I can't talk to modem

2008-01-03 Thread Michael Müller


Am 02.01.2008 um 15:39 schrieb Bernd Mueller:


Graeme Geldenhuys wrote:


  SerWrite(serialhandle, s, Length(s));


SerWrite(serialhandle, s[1], Length(s));


Why not adding an overloaded SerWrite() that simply expects a string?

procedure SerWrite(handle, string);
begin
  SerWrite(handle, string[1], Length(string));
end;

This s[1] vs. s issue is popular with blockread/write too.

Regards

Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-03 Thread Joost van der Sluis
Op woensdag 02-01-2008 om 12:35 uur [tijdzone -0500], schreef Anthony W.
Henry:
> I recently responded to a question on the community board
> asking about an fpc book by recommending a Turbo Pascal
> book by Jeff Duntemann.  His book started me out as a Pascal
> programmer in 1989 and I still find these old books useful from
> time to time.  
> 
>I have two by him:
> Turbo Pascal from Square One 
> The Complete Borland Pascal
> 
>   Mr. Duntemann has also written other programming books and
> was employed by Borland for a while as a technical writer.  I have
> found his books to be the best available for learning Pascal.  
> 
>   When I responded to the board question it started a train of 
> thought that resulted me in contacting Mr. Duntemann about writing
> a book on FPC.   To my (pleased) surprise I found him provisionally
> enthusiastic for the project.(He hasn't made his mind up yet). 

That would be PERFECT!

I've learned all I know from him!

Got his books from the library when I was 10 or so... After a while I
had to bring them back, then I had to wait for two months before I could
lend them again...

I never found a copy for myself, though...

Joost.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-03 Thread Anthony W. Henry

> >   Mr. Duntemann has also written other programming books and
> > was employed by Borland for a while as a technical writer.  I have
> > found his books to be the best available for learning Pascal.  
> > 
> >   When I responded to the board question it started a train of 
> > thought that resulted me in contacting Mr. Duntemann about writing
> > a book on FPC.   To my (pleased) surprise I found him provisionally
> > enthusiastic for the project.(He hasn't made his mind up yet). 
> 
> That would be PERFECT!
> 
> I've learned all I know from him!
> 
> Got his books from the library when I was 10 or so... After a while I
> had to bring them back, then I had to wait for two months before I could
> lend them again...
> 
> I never found a copy for myself, though...


   Mr. Duntemann's older books can still be found on amazon. 

Anthony


> 
> Joost.
> 
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] serial.pp - I can't talk to modem

2008-01-03 Thread Graeme Geldenhuys
On 03/01/2008, Michael Müller <[EMAIL PROTECTED]> wrote:
>
> Why not adding an overloaded SerWrite() that simply expects a string?


Funny you mention that. I was actually thinking the same thing -
adding a helper method which takes a string parameter and auto adds
the CR (#13) character to the end of the string, if it doesn't exist.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal