Re: [fpc-pascal] Apache Modules without LResources

2009-05-03 Thread Zaher Dirkey
I Agree with Giovanni, in next my project i like to use only FPC to
create Apache module.

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


Re: [fpc-pascal] Apache Modules without LResources

2009-04-29 Thread Joost van der Sluis
Op dinsdag 28-04-2009 om 23:21 uur [tijdzone +0200], schreef Giovanni
Premuda:
 Joost van der Sluis wrote:
  Op dinsdag 28-04-2009 om 02:58 uur [tijdzone +0200], schreef Giovanni
  Premuda:

  Is it possible to use fclweb without linking LResources and a lazarus 
  resource file?
  
 
  One way is without using modules, select 'File-New-Custom CGI Program'
  from the lazarus-menu.

 This seems to  produce a  simple CGI app, not an apache module.

Ok, 'File-New-Custom Apache Module' and you'll have an apache module.

(But you really need svn lazarus and fpc to get this really to work)

  Another way is using the 'normal' web-module, but remove it's
  resource-file. So you have to create all components at run-time. To do
  that you can simply remove the LResources from the uses-line, and remove
  the {$I unit1.lrs} line
 And this is the first thing I tried but the module fails miserably with 
 error:
 
 - *Failed to initialize component: No streaming method available
 
 which makes me think the module is actually looking for a resource, 
 especially as the module works when i include a stub webmodule resource.

That's indeed a TDataModule issue.

Joost

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


Re: [fpc-pascal] Apache Modules without LResources

2009-04-29 Thread Felipe Monteiro de Carvalho
On Mon, Apr 27, 2009 at 9:58 PM, Giovanni Premuda li...@softwerk.it wrote:
 Is it possible to use fclweb without linking LResources and a lazarus
 resource file?

Why don't you want to have the resource file?

-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Apache Modules without LResources

2009-04-29 Thread Giovanni Premuda

Felipe Monteiro de Carvalho wrote:

On Mon, Apr 27, 2009 at 9:58 PM, Giovanni Premuda li...@softwerk.it wrote:
  

Is it possible to use fclweb without linking LResources and a lazarus
resource file?



Why don't you want to have the resource file?
  
Fundamentally because if I could avoid LResources my module could be 
compiled using only fpc, as I create all my actions programmatically.


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


Re: [fpc-pascal] Apache Modules without LResources

2009-04-28 Thread Joost van der Sluis
Op dinsdag 28-04-2009 om 02:58 uur [tijdzone +0200], schreef Giovanni
Premuda:
 Hello,
 I'm in the process of converting a relatively complex LMS from Delphi to 
 fpc.
 In Delphi I was using a descendant of TCustomWebDispatcher instead of a 
 TWebModule in order to avoid depending on DFM resources.
 Is it possible to use fclweb without linking LResources and a lazarus 
 resource file?

One way is without using modules, select 'File-New-Custom CGI Program'
from the lazarus-menu.

Another way is using the 'normal' web-module, but remove it's
resource-file. So you have to create all components at run-time. To do
that you can simply remove the LResources from the uses-line, and remove
the {$I unit1.lrs} line.

Joost.

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


Re: [fpc-pascal] Apache Modules without LResources

2009-04-28 Thread Giovanni Premuda

Joost van der Sluis wrote:

Op dinsdag 28-04-2009 om 02:58 uur [tijdzone +0200], schreef Giovanni
Premuda:
  
Is it possible to use fclweb without linking LResources and a lazarus 
resource file?



One way is without using modules, select 'File-New-Custom CGI Program'
from the lazarus-menu.
  

This seems to  produce a  simple CGI app, not an apache module.

Another way is using the 'normal' web-module, but remove it's
resource-file. So you have to create all components at run-time. To do
that you can simply remove the LResources from the uses-line, and remove
the {$I unit1.lrs} line
And this is the first thing I tried but the module fails miserably with 
error:


- *Failed to initialize component: No streaming method available

which makes me think the module is actually looking for a resource, 
especially as the module works when i include a stub webmodule resource.



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


Re: [fpc-pascal] Apache Modules without LResources

2009-04-28 Thread ABorka
Not sure about this error, but make sure you are using the latest SVN 
source code for FPC because recently there were multiple bug fixes done 
in fcl-web



Giovanni Premuda wrote:

Joost van der Sluis wrote:

Op dinsdag 28-04-2009 om 02:58 uur [tijdzone +0200], schreef Giovanni
Premuda:
 
Is it possible to use fclweb without linking LResources and a lazarus 
resource file?



One way is without using modules, select 'File-New-Custom CGI Program'
from the lazarus-menu.
  

This seems to  produce a  simple CGI app, not an apache module.

Another way is using the 'normal' web-module, but remove it's
resource-file. So you have to create all components at run-time. To do
that you can simply remove the LResources from the uses-line, and remove
the {$I unit1.lrs} line
And this is the first thing I tried but the module fails miserably with 
error:


- *Failed to initialize component: No streaming method available

which makes me think the module is actually looking for a resource, 
especially as the module works when i include a stub webmodule resource.



*
___
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] Apache Modules without LResources

2009-04-28 Thread Giovanni Premuda

ABorka wrote:
Not sure about this error, but make sure you are using the latest SVN 
source code for FPC because recently there were multiple bug fixes 
done in fcl-web
I've using fpc 2.2.4 but I downloaded fcl-web from subversion and 
applied some of your unapplied patches I found on Mantis, which improve 
Delphi compatibility quite a bit.

I believe this is more a problem of TDataModule, though.


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


Re: [fpc-pascal] Apache Modules without LResources

2009-04-28 Thread ABorka
I think all those patches are now applied - with minor changes - by 
Joost in the latest SVN.


Giovanni Premuda wrote:

ABorka wrote:
Not sure about this error, but make sure you are using the latest SVN 
source code for FPC because recently there were multiple bug fixes 
done in fcl-web
I've using fpc 2.2.4 but I downloaded fcl-web from subversion and 
applied some of your unapplied patches I found on Mantis, which improve 
Delphi compatibility quite a bit.

I believe this is more a problem of TDataModule, though.


___
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


[fpc-pascal] Apache Modules without LResources

2009-04-27 Thread Giovanni Premuda

Hello,
I'm in the process of converting a relatively complex LMS from Delphi to 
fpc.
In Delphi I was using a descendant of TCustomWebDispatcher instead of a 
TWebModule in order to avoid depending on DFM resources.
Is it possible to use fclweb without linking LResources and a lazarus 
resource file?

Thanks ,

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


[fpc-pascal]Apache modules

2004-02-23 Thread Giovanni Premuda
Is it possible to create Apache (2.0) modules with FPC? I do understand 
that I have to translate header files myself, but it seems that Apache 2 
is multithreaded, at least on Windows. So, will I have reentrancy problems?

TIA
Giovanni
--
Giovanni Premuda - SoftWerk sas
Salita S. Matteo 23/2 - 16123 GENOVA
Tel. 010 2471222 - Fax. 010 2470822
http://www.softwerk.it
___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal