Re: [fpc-pascal] ftp server

2010-05-20 Thread Graeme Geldenhuys
Nataraj S Narayan het geskryf: May I know if there are classes to implement an ftp server using fpc on Windows? I know the Indy components comes with clients and servers for just about any tcp, udp and raw sockets as well as over 100 higher level protocols. FTP Server being one of them.

[fpc-pascal] portable SelectText replacement

2010-05-20 Thread Hartmut Eilers
Hi Folks, I have the following code which I want to port to Windows, but I have no idea how the functionality of SelectText may be done in Windows. I googled a lot but unfortunately I found nothing that helped me out. How is something like that handled under Windows ? {$I-}

Re: [fpc-pascal] ftp server

2010-05-20 Thread Nataraj S Narayan
Hi Graeme Installed it from indyproject.org, using the .lpk. But no components are shown in the IDE. Any clues? regards Nataraj On Thu, May 20, 2010 at 12:13 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Nataraj S Narayan het geskryf: May I know if there are classes to implement an

Re: [fpc-pascal] ftp server

2010-05-20 Thread Graeme Geldenhuys
Nataraj S Narayan het geskryf: Installed it from indyproject.org, using the .lpk. But no components are shown in the IDE. Any clues? I don't use Indy at the moment, but would imagine there is some design time package that needs to be compiled and installed - so it registers in the IDE

[fpc-pascal] Crosscompile FPC

2010-05-20 Thread Hartmut Eilers
Hi Folks, for one of my projects I want to have a build environment to build the source for the following platforms: Linux ARM; Linux i386, Linux X64 and Windows i386 the compilers for Linux ARM and Windows i386 I build like that from a clean 2.4.0 SVN checkout: make clean make crosszipinstall

Re: [fpc-pascal] CGI application

2010-05-20 Thread Jorge Aldo G. de F. Junior
Try using powtils : http://z505.com/powtils/idx.shtml ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] portable SelectText replacement

2010-05-20 Thread Henry Vermaak
On 20 May 2010 08:10, Hartmut Eilers hart...@eilers.net wrote: Hi Folks, I have the following code which I want to port to Windows, but I have no idea how the functionality of SelectText may be done in Windows. I googled a lot but unfortunately I found nothing that helped me out. How is

[fpc-pascal] RE: Comedi Lib Header translation, was: h2pas enum error

2010-05-20 Thread Hartmut Eilers
Sorry for coming back on this so late, but I was busy with other projects: While trying to translate comedi.h with: h2pas -e -D -p -w -u comedi -l comedi -o comedi.pas comedi.h I get the messages: at line 495 error : syntax error at line 498 error : syntax error Internal error 1 in line 498

[fpc-pascal] Re: fpc-pascal Digest, Vol 71, Issue 50

2010-05-20 Thread Hartmut Eilers
Hallo Henry, thank you for your fast response. Sorry to say, that I don't understand what you suggest. Could you explain it a bit more ? Thanks a lot Hartmut I have the following code which I want to port to Windows, but I have no idea how the functionality of SelectText may be done in

Re: [fpc-pascal] RE: Comedi Lib Header translation, was: h2pas enum error

2010-05-20 Thread Henry Vermaak
On 20 May 2010 10:21, Hartmut Eilers hart...@eilers.net wrote: hart...@canis:~/src/OpenMSR/PhysMach/comedi $ cpp --no-stdinc comedi.h comedi.cpped.h cc1: error: unrecognized command line option -fno-stdinc This commandline option is not recognized by the compiler, hmmm. Try cpp -nostdinc.

Re: [fpc-pascal] Re: fpc-pascal Digest, Vol 71, Issue 50

2010-05-20 Thread Henry Vermaak
On 20 May 2010 10:28, Hartmut Eilers hart...@eilers.net wrote: Hallo Henry, thank you for your fast response. Sorry to say, that I don't understand what you suggest. Could you explain it a bit more ? SelectText monitors a file descriptor for input (or output) to become ready for up to the

Re: [fpc-pascal] ftp server

2010-05-20 Thread Vannus
i think you have to compile the .lpk in a certain order or something. i have similar problem - but you can still use the components. something along the lines of... uses idhttp; private idhttp: tidhttpclient; form1.create() begin idhttp:=tidhttp.create(self); end; its not as easy as to

Re: [fpc-pascal] CGI application

2010-05-20 Thread Felipe Monteiro de Carvalho
Using powtils you can write something like the example bellow, which I consider cleaner and easier to maintain: From: http://code.google.com/p/powtils/source/browse/dev#dev/examples/raw-template program project1; {$IFDEF FPC}{$mode objfpc}{$H+}{$ENDIF} {$APPTYPE CONSOLE} uses pwinit, pwmain;

[fpc-pascal] strtodate on linux

2010-05-20 Thread Vannus
I've used strtodate to convert 01/02/2010 on windows ok, but it fails with 'Invalid date format' on linux. anyone got any ideas why this happens? - V ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] strtodate on linux

2010-05-20 Thread ABorka
I had a problem like this before. If memory serves right, I had to set all four of these for StrToDate to work under Linux after moving some code from Windows: LongTimeFormat := 'hh:mm:ss'; ShortDateFormat := '/MM/DD'; DateSeparator := '/'; TimeSeparator := ':'; AB On