[fpc-pascal] Installing New Components (0.9.29/2.4.1)

2010-05-23 Thread Technical
On investigating this problem in more detail, it seems to be associated with 
the following circumstances :-


1) It is when trying to install in Lazarus 0.9.29 / FPC 2.4.1
2) It is specific to installing for WinCE - Win32 seems to be OK

Originally, the component was installed on 0.9.26/2.2.2 for just Win32. Then 
WinCE was added on the same installation and worked OK, with the component 
still appearing on the Component Palette. The applications using this 
component also worked OK for desktop (Win32) and smartphone (WinCE - Windows 
Mobile 6.5).


On trying the same for Lazarus 0.9.29 / FPC 2.4.1 the component installed OK 
again on the Component Palette and in the (Win32) application with Win32 
installed, but when trying to install WinCE with all the mods required by 
WinCE, the component still appeared on the Component Palette, but it does 
not work in the application running WinCE / Windows Mobile 6.5. The cells of 
the grid do not fill with data, and the grid does not appear correctly on 
the phone - there are no grid lines or cells etc.


I have also tried to install an exact copy of StringGrid on the Component 
Palette. It installs on the palette OK under Win32, but when trying install 
it again under WinCE (calling it 'NewStringGrid') and to use the new 
component (identical to StringGrid) on the WinCE application, the following 
error message appears


"The project uses target OS=Error: illegal parameter; -Twin32 and CPU=Error: 
illegal parameter; -Twin32,

The system.ppu for this target was not found by the FOC binary directories
Make sure fpc is installed correctly for this target and the fpc.cfg 
contains the right directories."


The problem now seems to be less to do with the source code of the new 
component, and more to do with the settings within Lazarus and FPC.


I have tried all obvious combinations, but without success. The same problem 
occurs with new 'virgin' installations of Lazarus / FPC aswell as 
installations added to 0.9.26/2.2.2.


Has anyone managed to install new components into Lazarus 0.9.29 / FPC 2.4.1 
and successfully run applications

using those (visual) components using WindowsCE / Windows Mobile 6.5?

Any contributions would be gratefully received.

Regards 



__ Information from ESET Smart Security, version of virus signature 
database 5138 (20100522) __

The message was checked by ESET Smart Security.

http://www.eset.com



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


Re: [fpc-pascal] Executable stack in shared library

2010-05-23 Thread Jonas Maebe

On 22 May 2010, at 21:07, Matthias Klumpp wrote:

> On Sat, 22 May 2010 20:38:59 +0200, Jonas Maebe 
> wrote:
>> 
>> Actually, yes. The ELF resource writer should probably add such a section
>> as well.
> Should I write a bug report for this?

Yes.


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


[fpc-pascal] buildfaq.pdf - about different starting compiler and generated compiler

2010-05-23 Thread Thierry Bothorel
Hi,

I wonder if this sentence from the buildfaq is always relevantt :

> A standard confusing detail when installing a snapshot is that the
> target directory (e.g.  /usr/local/lib/fpc/2.4.0) depends
> on the version number. If you would follow the above sequence, and the
> generated compiler (say version 2.5.1) is not equal to
> the starting compiler (say version 2.4.0), then make install will
> install into the wrong directory. The same goes for windows
> ( c:\fpc\2.4.0 ... ) This can be solved by setting the compiler that
> is generated in the "make all" step as a starting compiler
> to the "make install" step. This will ensure that the "make install"
> sequence gets the correct versioning info.

If I build FPC  from the trunk (2.5.1 currently) and set explicitly the
FPC binary to the 2.4.1 version, it installs already within the right
directory,  lib/fpc/2.5.1/ and not in lib/fpc/2.4.1/

So I wonder if the sentence is about a behaviour in an older freepascal
release, or if I completely missed something ?

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


Re: [fpc-pascal] buildfaq.pdf - about different starting compiler and generated compiler

2010-05-23 Thread Marco van de Voort
In our previous episode, Thierry Bothorel said:
> 
> If I build FPC  from the trunk (2.5.1 currently) and set explicitly the
> FPC binary to the 2.4.1 version, it installs already within the right
> directory,  lib/fpc/2.5.1/ and not in lib/fpc/2.4.1/
> 
> So I wonder if the sentence is about a behaviour in an older freepascal
> release, or if I completely missed something ?

No, very sharp, goes on the list of buildfaq todos, thanks.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] CGI file upload

2010-05-23 Thread Vannus
How do you get cgi uploads to work??

Im using TModuledCGIApplication

procedure TCGIDatamodule1.DataModuleCGIRequest(Sender: TObject);
begin
  // upload handling
  writeln('filenamevar:
'+application.requestvariables['file']+'');  // works when get but
post is just blank
  writeln('filenamefile:
'+application.UploadedFileName('file')+'');  // doesn't work with get
or post, just comes out blank

// upload html
  writeln('');
  writeln('Upload File:  ');
  writeln('');
end;


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

Re: [fpc-pascal] strtodate on linux

2010-05-23 Thread Vannus
cheers - worked a treat :)

On 21 May 2010 04:50, ABorka  wrote:

> 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
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-23 Thread Leonardo M . Ramé
Hi, after struggling half a day with fpWeb on Windows Seven 64bits and Apache 
2.2.15, I decided to try with Powtils, but it seems to both have problems on 
this platform.

My Powtils CGI program apparently runs fine, but when I try to access Get, Post 
or Env vars they are empty.

This simple example should show the environment var RequestUri, but it gives an 
empty string:

program test;

uses
  pwenvvar,
  pwinit,
  pwmain;

begin
  out('GetCgiRequestUri: ' + GetCgiRequestUri);
end.
   
For example, if I do http://localhost/cgi-bin/test.exe?foo=var, it should show:

"GetCgiRequestUri: /cgi-bin/test.exe?foo=var", but it shows "GetCgiRequestUri:" 
only.

BTW, in Linux it just run fine, 32 and 64bits without any problem.

Does anyone is can run FPC based CGI programs in this environment?

Leonardo M. Ramé

http://leonardorame.blogspot.com




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

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-23 Thread leledumbo

Powtils seems to be ignored by the author for a couple of years, use fpWeb or
FreeSpider instead. Both are maintained and quite advanced (fpWeb:
parameterized templates, FreeSpider: smart module loading), and what you
need: both have working file upload example.

-- 
View this message in context: 
http://old.nabble.com/CGI-file-upload-tp28650163p28653703.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.

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