Re: [fpc-pascal] ftp server

2010-05-19 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. h

[fpc-pascal] ftp server

2010-05-19 Thread Nataraj S Narayan
Hi May I know if there are classes to implement an ftp server using fpc on Windows? Warm regards Nataraj ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CGI application

2010-05-19 Thread Vannus
Thats me up & running now - thanks for your help guys, I'll certainly poke around those CGI vars. On 19 May 2010 14:19, Carsten Bager wrote: > > How do i get command line vars? i tried GetENV() but it didn't understand > GetEnv() (which unit is > > it in?) > > > Here is a small cgi program. Comm

Re: [fpc-pascal] TComponent with Corba Interfaces

2010-05-19 Thread Michael Van Canneyt
On Wed, 19 May 2010, Graeme Geldenhuys wrote: Michael Van Canneyt het geskryf: Why should it ? The style of the interface only affects the interface. I haven't noticed any issues, but was a bit concerned. I don't know how different the internal workings are between COM and Corba interface

Re: [fpc-pascal] TComponent with Corba Interfaces

2010-05-19 Thread Graeme Geldenhuys
Michael Van Canneyt het geskryf: > > Why should it ? The style of the interface only affects the interface. I haven't noticed any issues, but was a bit concerned. I don't know how different the internal workings are between COM and Corba interfaces. So I thought I would ask before I got to far a

Re: [fpc-pascal] TComponent with Corba Interfaces

2010-05-19 Thread Michael Van Canneyt
On Wed, 19 May 2010, Graeme Geldenhuys wrote: Hi, I'm using TComponent has one of my base classes, but extending my classes with Corba style Interfaces. Will this not conflict with TComponent which already uses IUnknown (COM style interface)? Why should it ? The style of the interface only

[fpc-pascal] TComponent with Corba Interfaces

2010-05-19 Thread Graeme Geldenhuys
Hi, I'm using TComponent has one of my base classes, but extending my classes with Corba style Interfaces. Will this not conflict with TComponent which already uses IUnknown (COM style interface)? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://o

Re: [fpc-pascal] CGI application

2010-05-19 Thread Carsten Bager
> How do i get command line vars? i tried GetENV() but it didn't understand > GetEnv() (which unit is > it in?) Here is a small cgi program. Comments are in Danish but I hope you can get the meaning. Carsten {Program version 1.00} program listdir2html; {LONGSTRINGS OFF} {$INFO +-

Re: [fpc-pascal] CGI application

2010-05-19 Thread Graeme Geldenhuys
Vannus het geskryf: > > How do i get command line vars? i tried GetENV() but it didn't understand > GetEnv() (which unit is it in?) ParamCount() and ParamStr() is part of the System unit, so is always available. GetEnvironmentVariable() is in the SysUtils unit. Note that CGI apps use a lot of

Re: [fpc-pascal] CGI application

2010-05-19 Thread Vannus
eh - im pretty sure im using ARequest and not AResponse (im on differnt pc just now, can't check) - but i'll definetly double check when i get back! How do i get command line vars? i tried GetENV() but it didn't understand GetEnv() (which unit is it in?) Cheers. On 19 May 2010 13:55, Graeme Geld

Re: [fpc-pascal] CGI application

2010-05-19 Thread Graeme Geldenhuys
Vannus het geskryf: > Can someone point me to how I can make a CGI app that outputs the fields in > the query? Think of CGI apps as simple Console applications (that's pretty much what they are). Everything after the ? is simply passed in as a parameter to your program. In it's simplest form you c

Re: [fpc-pascal] CGI application

2010-05-19 Thread Michael Van Canneyt
On Wed, 19 May 2010, Vannus wrote: This may not be the right place to ask, but I'm really stumped and would much prefer FPC over PHP. Can someone point me to how I can make a CGI app that outputs the fields in the query? ie. my.cgi?q=hello and my.cgi then outputs whatever q is? I'm using

[fpc-pascal] CGI application

2010-05-19 Thread Vannus
This may not be the right place to ask, but I'm really stumped and would much prefer FPC over PHP. Can someone point me to how I can make a CGI app that outputs the fields in the query? ie. my.cgi?q=hello and my.cgi then outputs whatever q is? I'm using Lazarus but the deprecated CGI doesn't h

[fpc-pascal] sentinels, "marks", enumerations

2010-05-19 Thread spir ☣
[follow-up from the thread about "void"] To favor the use of custom sentinels, I'm thinking at a Mark type. This is not strictly necessary, since the user can build individual marks or series of them easily. Either as distinct referenced objects or as plain values (logical, number, string...).