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 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 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


[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


Re: [fpc-pascal] Workaround for #0011837 (FPC = 2.2.2 with GTK = 2.13)

2009-01-21 Thread Giovanni Premuda

Vincent Snijders wrote:


Anybody (also Giovanni Premuda) anyone spread this all over the 
Lazarus site 
OK, I had the wrong impression that the lazarus docs where editable only 
by insiders, as the main site seems to be.


So:
by posting forum messages 

Done

and submitting news items

How?
, anybody (also Giovanni Premuda) can edit the Lazarus readmes and 
release notes on the wiki
Done, 
http://wiki.lazarus.freepascal.org/Installing_Lazarus#Ubuntu_.2F_Debian
anybody (also Giovanni Premuda) can request updates of the debian debs 
in the debian bug tracker.

I don't think this is necessary


There are no notes on sourceforge to be edited or updated, so nobody 
can do that.

Could be useful


Anybody (also Giovanni Premuda) can spread this everywhere else.

Done. (Ubuntu Forums)


Do you get it?
No, I would like to see this as a news item and on the FAQs on the main 
site. 


But it looks like you are understimating the importance of this bug:

1. Potential user (i.e. potential contributor) install lazarus.
2. Potential user launches lazarus and sees an ugly interface
3. Potential user searches around and finds out that he can rebuild 
lazarus with GTK2 interface

4. Potential user rebuilds lazarus and... the rebuild doesn't work
5. Potential user thinks: I knew it was to good to be true
6. Potential user is neither user nor potential anymore

Servus,
Giovanni

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


Re: [fpc-pascal] Workaround for #0011837 (FPC = 2.2.2 with GTK = 2.13)

2009-01-20 Thread Giovanni Premuda

Vincent Snijders wrote:


Yes, anybody can do that.

Sorry? I don't get it.

Giovanni

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


Re: [fpc-pascal] When are used units recompiled? (wiki page added)

2006-04-09 Thread Giovanni Premuda

Tom Verhoeff ha scritto:

This makes it much less attractive to release units without source
code.  That may be understandable from an open-source perspective,
but in teaching I find it useful or even necessary to provide units
without source code.
  

IN TEACHING?

Btw. no sane commercial Delphi developer has ever considered using a 
component without source code at least since Delphi 2.0. Look at the 
offering of component vendors and you will see that they invariably 
offer source code licenses.


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