[fpc-pascal]make files

2003-09-07 Thread Frank W McCormick
Hi all Can someone give me a simple example of a makefile suitable for just simple compiling of one file ? I am so used to running FPC from the command line that make is foreign to me. Thanks -- -- Frank McCormick Montreal -- _

[fpc-pascal]cgiapp.pp and ezcgi.pp possible bug

2003-09-07 Thread James Mills
Hi, I think there might be a possible bug in both ezcgi.pp and cgiapp.pp If you try and post a piece of form data: ie: > > it will hang in an infinite loop. I'm not sure where the problem is, debugging cgi apps is hard ;) cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -Y

[fpc-pascal]SDL Library

2003-09-07 Thread James Mills
Hi, What's the reccomended SDL library to use with FPC ? With FPC 1.0.6 I used to use SDL4Freepascal-1.2.0.0.tar.gz by Daniel F Moisset ... Are there any further updates to SDL for use with FPC ? I found Daniel's port of the SDL library very easy to use. cheers James -- - -Zero Defect Softwar

Re: [fpc-pascal]Read from command line

2003-09-07 Thread James Mills
On Sun, Sep 07, 2003 at 09:43:32PM +1000, DONALD PEDDER wrote: >Don't know if it's different in Linux, but in the DOS version at least > you can use paramstr(1), paramstr(2), etc. > > if (paramstr(1)='test') then writenln('you passed the parameter passing > test') It isn't any different on Li

Re: [fpc-pascal]Read from command line

2003-09-07 Thread DONALD PEDDER
> myprogram param1 param2 > > made those two variables available to the program and you could do some > action, just like passing variables to a function. > > How do you do that in FPC in Linux? Don't know if it's different in Linux, but in the DOS version at least you can use paramstr(1), para

Re: [fpc-pascal]Read from command line

2003-09-07 Thread Olaf Leidinger
Hi again! Sorry, it has to be: for i := 0 to argc-1 do argc is the number of arguments, argv is a string-vector. I think it is an array of c-strings, isn't it? Ciao, Olaf ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.or

Re: [fpc-pascal]Read from command line

2003-09-07 Thread Olaf Leidinger
Hi Paul! > How do you do that in FPC in Linux? > You can use something like this: program argtest; var i: integer; begin for i := 0 to argc do begin writeln (argv[i]); end; end. Ciao, Olaf ___ fpc-pascal maillist - [EMAIL

Re: [fpc-pascal]Hex chars

2003-09-07 Thread Marco van de Voort
> I am trying to write to a serial LCD device on /dev/ttys0 and I need to pass hex > codes to it. According to the documentation, in C is done like this: > > putch(0xfe); > putch('X'); > > What will be the similar commad in FPC? write(chr($FE),'X'); ___

[fpc-pascal]Hex chars

2003-09-07 Thread Paul Aviles
I am trying to write to a serial LCD device on /dev/ttys0 and I need to pass hex codes to it. According to the documentation, in C is done like this:   putch(0xfe); putch('X');   What will be the similar commad in FPC?   Thanks -pa  

[fpc-pascal]Read from command line

2003-09-07 Thread Paul Aviles
Hello all,   In the old TP there just to be a way to read a string from the command line at the same time you invoked the program thus doing:   myprogram param1 param2   made those two variables available to the program and you could do some action, just like passing variables to a function.