Hi Denis,
nice :)
I'm curious, why didn't you make it a class...wouldn't that have made it
nicer/easier to use and program?
cheers,
Paul
- Original Message -
From: spir ☣ denis.s...@gmail.com
To: FreePascal fpc-pascal@lists.freepascal.org
Sent: Monday, May 03, 2010 4:25 AM
Subject:
how do I build a minimal 'hello world' CGI application under Free Pascal ?
Where do I find 'instructions for dummies' ?
Have a look http://wiki.lazarus.freepascal.org/CGI_Web_Programming here .
--
View this message in context:
any Idea?
Please report. And internal error always means bug.
--
View this message in context:
http://old.nabble.com/internal-error-200604201tp28427734p28432087.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
Lele,
I need instructions for _dumbier_ users :)
1.
==
After hosted, CGI can now be used normally as
http://www.yourserver.com[.xx]/yourlogin/cgi-bin/cginame.exe
(I will use my web browser, I suppose...)
However I have no web site on my server... :(
So where to store and how to call the
I'm curious, why didn't you make it a class...wouldn't that have made it
nicer/easier to use and program?
+1
It should be a class, yes. Now you have loads of global functions.
The integer data type doesn't make much sense but your comment says it will be
changed to generics type. That sounds
duilio foschi het geskryf:
how do I build a minimal 'hello world' CGI application under Free Pascal ?
Can't get simpler than this:
-
program cgitest;
{$mode objfpc}{$H+}
uses
Classes;
begin
writeln('Content-Type:text/html',#10#13);
writeln('html');
Paul Nicholls het geskryf:
I'm curious, why didn't you make it a class...wouldn't that have made it
nicer/easier to use and program?
My thoughts too.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
I don't wish to sound negative here, but I think something like
doubly-linked lists is fundamental and doesn't need an implementation
specially made for the FPC community, unless it needs to be adapted to the
language implementation itself or the execution environment.
There must be dozens of
Hello,
A few questions on the topic:
* Is it possible to define an optional parameter without default value?
* Is it at all possible for an optional *argument* not to be the last in actual
call? Eg
procedure p(a:Integer=0 ; b:Integer=0)
How can the caller pass b and not a?
* The ref
On Mon, 3 May 2010 16:02:32 +1000
Paul Nicholls paulfnicho...@gmail.com wrote:
Hi Denis,
nice :)
I'm curious, why didn't you make it a class...wouldn't that have made it
nicer/easier to use and program?
Yes, for sure. Not beeing able to use the OO syntax is really a pain! (Even
inside
On Sun, 2 May 2010 22:20:43 +0200
Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote:
Hello,
I think it would be good if you add a link to your package here:
http://wiki.lazarus.freepascal.org/Components_and_Code_examples
Thanks, I'll add it there if some of you test
On Sun, May 2, 2010 at 2:29 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
Some reasons:
* Free Pascal is open source (always available and no vendor lock-in)
* Free Pascal is free, so can always use latest version at NO cost.
* Previous skills from Delphi 7 project can be reused. No
Am Monday 03 May 2010 14:24:48 schrieb Marcos Douglas:
On Sun, May 2, 2010 at 2:29 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
Some reasons:
* Free Pascal is open source (always available and no vendor lock-in)
* Free Pascal is free, so can always use latest version at NO cost.
Marcos Douglas het geskryf:
I do not knew about this! Can you post a few links of companies using
ExtPascal? Would be very good to post these links in list of
ExtPascal.
Many are developers I read about in the Lazarus and FPC-users mailing list.
What about do you think about performance
Hi Lee,
On Sun, May 2, 2010 at 3:10 PM, Lee Jenkins l...@datatrakpos.com wrote:
* Virtual Private Hosting is really cheap now, largely alleviating the
problem of deploying native executables to web servers like FastCGI, ISAPI,
apache_mod, etc.
Yes, you right.
I am working on a project now
On Mon, May 3, 2010 at 9:37 AM, Rainer Stratmann
rainerstratm...@t-online.de wrote:
I don't know what CGI is. Nevertheless I was able to program a webserver
completely in freepascal. It isn't that complicate (if you have time).
If a connection comes in then I prove how many connections are
On Mon, May 3, 2010 at 9:37 AM, Rainer Stratmann
rainerstratm...@t-online.de wrote:
I don't know what CGI is.
Here http://wiki.lazarus.freepascal.org/CGI_Web_Programming
--
Marcos Douglas
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
On Mon, May 3, 2010 at 9:41 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
Marcos Douglas het geskryf:
I do not knew about this! Can you post a few links of companies using
ExtPascal? Would be very good to post these links in list of
ExtPascal.
Many are developers I read about in the
On Mon, May 3, 2010 at 9:41 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
At the moment we use plain CGI apps.
I forgot:
Do you continues using cgiapp unit?
Have you seen Powtils? Here
http://wiki.lazarus.freepascal.org/CGI_Web_Programming recommends.
Marcos Douglas het geskryf:
What do you use in UI?
What about templates, do you use?
No templates and hard-crafted UI with our own HTML and CSS markup. Our CGI
apps have a very dynamic interface which is build from information stored
in a database.
If you have some news about on learning
On Mon, May 3, 2010 at 11:07 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
No templates and hard-crafted UI with our own HTML and CSS markup. Our CGI
apps have a very dynamic interface which is build from information stored
in a database.
There are HTML code inside Pascal code?
I
Marcos Douglas wrote:
Hi Lee,
So I'm taking advantage of the extra time and refactoring the framework a
bit and implementing a DHTML UI layer now. We looked at ExtJS as well as
YahooUI, OpenLaszlo and a few of the others and eventually decided on Dojo
javascript tookit, but different UI
Lee Jenkins wrote:
Here is a short screencast of the framework using the Flex UI layer.
Note that its pretty old and the framework has come a long way since
this screencast and as I said, I'm going through some refactoring now
since I have to change some things for the customer anyway.
Marcos Douglas het geskryf:
There are HTML code inside Pascal code?
All HTML code (inside our pascal code) is tagged with class of div id's. We
then use CSS to adjust our UI the way we want.
For inspiration of this concept, have a look at:
http://www.csszengarden.com/
All the pages
Hi,
I often hear of developers using FPC on 64-bit Linux. My development
machine is the same. But I can't say I have ever heard of anybody using
64-bit Windows with FPC.
Does FPC support 64-bit Windows? If so, is it stable (like 64-bit Linux) or
still experimental?
Regards,
- Graeme -
--
On 03 May 2010, at 15:53, Graeme Geldenhuys wrote:
Does FPC support 64-bit Windows? If so, is it stable (like 64-bit Linux) or
still experimental?
http://www.freepascal.org/download.var lists all available stable releases.
Jonas
___
fpc-pascal
Graeme Geldenhuys wrote:
Our CGI applications (three of them) are just one part of our complete
product. We have a desktop GUI part as well. The CGI applications reuse a
lot of code from the desktop. We implement the Model-GUI-Mediator design
pattern, to split UI code from Business Domain code.
There is a 64-bit cross compiler for Windows, and I have been using it over
the last few months.
I am porting my company's loan calculation DLL from Delphi to FPC. This was
initially done to support 32-bit linux, but the pace has picked up due to a
client who wants to know when a 64-bit version
2010/5/3 spir ☣ denis.s...@gmail.com:
Hello,
A few questions on the topic:
* Is it possible to define an optional parameter without default value?
* Is it at all possible for an optional *argument* not to be the last in
actual call? Eg
procedure p(a:Integer=0 ; b:Integer=0)
How can
On 03/05/2010 10:58, spir ☣ wrote:
Hello,
A few questions on the topic:
* Is it possible to define an optional parameter without default value?
* Is it at all possible for an optional *argument* not to be the last in actual
call? Eg
procedure p(a:Integer=0 ; b:Integer=0)
How can the
Lee Jenkins l...@datatrakpos.com wrote:
Yes, I had plans to release it open source when its ready for testing,
probably within 3-4 weeks from now.
This is great!
The idea of the framework is mainly based on Proxy pattern. You build your
gui within the server session, similar to how
Graeme Geldenhuys graemeg.li...@gmail.com wrote:
All HTML code (inside our pascal code) is tagged with class of div id's. We
then use CSS to adjust our UI the way we want.
For inspiration of this concept, have a look at:
http://www.csszengarden.com/
All the pages (themes) available is
On Mon, 03 May 2010 19:15:57 +0100
Martin f...@mfriebe.de wrote:
On 03/05/2010 10:58, spir ☣ wrote:
Hello,
A few questions on the topic:
* Is it possible to define an optional parameter without default value?
* Is it at all possible for an optional *argument* not to be the last in
On Mon, 3 May 2010 14:28:13 -0300
Flávio Etrusco flavio.etru...@gmail.com wrote:
Needed to change the
parameter to be a pointer to the record instead (so the default can be
nil), but this creates a
trap for the calling code.
Else, is there a common trick or workaround?
What
On 3 May 2010 17:10, Lee Jenkins l...@datatrakpos.com wrote:
I am most interested to hear how tiOPF handles under a threaded environment
when you move to FastCGI, Graeme.
Well, Peter H. and others have used tiOPF in a threaded environment
for years, so it does work. The only threaded part of
On 3 May 2010 20:38, Marcos Douglas m...@delfire.net wrote:
BTW, is tiOPF life?
Not 100% sure what you mean. Maybe is it alive? If so, yes tiOPF is
still actively being used and developed. A new branch was started
recently to work on tiOPF3 features which will include Unicode support
(but FPC is
On 3 May 2010 17:08, Jonas Maebe wrote:
http://www.freepascal.org/download.var lists all available stable releases.
I did look there, but only now did I see the Win64 at the bottom of
the list. :-( Initially I saw the first one as Win32, Win64 and
WinCE, but the link takes you to Win32
consider the following code snippet:
code
unit a;
interface
type
tt = ...
tcls = class
procedure method(x,y: tt);
end;
function equals(x,y: tt): boolean;
implementation
function equals(x,y: tt): boolean;
begin
...
end;
procedure tcls.method(x,y: tt);
begin
if equals(x,y) then
On Mon 3 May 2010, leledumbo wrote:
In the code above, equals will refer to tobject.equals instead of equals
defined in the unit. How can I refer to that one instead?
I'm unable to reproduce your error. Real code that I could actually compile and
run would make this a lot easier.
That said,
39 matches
Mail list logo