Re: [fpc-pascal] Printing TFPImage to TCairoPSCanvas

2018-05-21 Thread Leonardo M . Ramé via fpc-pascal
On Mon, 21 May 2018, Leonardo M. Ramé via fpc-pascal wrote: > Hi, I need to print an TFPMemoryimage into Printer.Canvas (which uses > TCairoPSCanvas to printing to CUPS) from a Linux CGI (no widgetset), but > it seems that it's an impossible task, because Printer.Canvas requier

[fpc-pascal] Printing TFPImage to TCairoPSCanvas

2018-05-21 Thread Leonardo M . Ramé via fpc-pascal
Hi, I need to print an TFPMemoryimage into Printer.Canvas (which uses TCairoPSCanvas to printing to CUPS) from a Linux CGI (no widgetset), but it seems that it's an impossible task, because Printer.Canvas requieres a TBitmap which in turn requires a widgetset. Can anyone help me with this?. BT

Re: [fpc-pascal] fpc and voip ?

2017-02-02 Thread Leonardo M . Ramé
Hi freedvs, does it mean with UOS I can create an audio streaming server via HTTP?. Regards, Leonardo M. Ramé http://leonardorame.blogspot.com From: fredvs To: fpc-pascal@lists.freepascal.org Sent: Thursday, February 2, 2017 10:19 AM Subject: Re: [fpc-pascal] fpc and voip ? Hello

Re: [fpc-pascal] fpGUI Features

2015-06-17 Thread Leonardo M . Ramé
Hi Graeme, I know you hate web stuff, but did you take a look at this? http://www.zebkit.com/   Its something similar to your approach with fpGui, but using HTML5 Canvas, I'm dreaming of seeing fpGui on the web, generated from FPC.  Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [fpc-pascal] Solution for Timer in daemon

2013-03-01 Thread Leonardo M . Ramé
y? > > >Regards. Well, as far as I know, sleep is no thread safe, it will block your app. 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] OT a bit - Planet Object Pascal

2013-02-17 Thread Leonardo M . Ramé
;(and actually sometimes do), to develop. A language that must be with IDE >sucks big time. Whaaat? I don't like java, but don't you know you can use javac command line?, and program in any text editor?. Leonardo M. Ramé http://leonardorame.blogspot.com __

Re: [fpc-pascal] Re: Tree structure

2013-02-13 Thread Leonardo M . Ramé
> > From: Roberto P. >To: Leonardo M. Ramé ; FPC-Pascal users discussions > >Sent: Wednesday, February 13, 2013 11:27 AM >Subject: Re: [fpc-pascal] Re: Tree structure > > >I can't find the unit gtree...where is it located or

Re: [fpc-pascal] Re: Tree structure

2013-02-13 Thread Leonardo M . Ramé
hether it's really worth developing the unit for other people (than > myself) :) > > Hi Leledumbo, I think it will work. I take the opportunity to ask you for a little example on how can I traverse a nested tree, I need this for populating a TTreeView from a ge

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Leonardo M . Ramé
- Original Message - > From: Leonardo M. Ramé > To: FPC-Pascal users discussions > Cc: > Sent: Tuesday, February 12, 2013 12:45 PM > Subject: Re: [fpc-pascal] Tree structure > > - Original Message - > >> From: Michael Van Canneyt >> To:

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Leonardo M . Ramé
- Original Message - > From: Michael Van Canneyt > To: Leonardo M. Ramé ; FPC-Pascal users discussions > > Cc: > Sent: Tuesday, February 12, 2013 12:28 PM > Subject: Re: [fpc-pascal] Tree structure > > > > On Tue, 12 Feb 2013, Leonardo M. Ramé wrote: &

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Leonardo M . Ramé
> > From: Michael Van Canneyt >To: FPC-Pascal users discussions >Sent: Tuesday, February 12, 2013 12:36 PM >Subject: Re: [fpc-pascal] Tree structure > > > >On Tue, 12 Feb 2013, Torsten Bonde Christiansen wrote: > >> On 2013

Re: [fpc-pascal] TFPCanvasDrawer and anti-alias.

2013-01-28 Thread Leonardo M . Ramé
> > From: silvioprog >To: Leonardo M. Ramé ; FPC-Pascal users discussions > >Sent: Monday, January 28, 2013 9:20 PM >Subject: Re: [fpc-pascal] TFPCanvasDrawer and anti-alias. > > >2013/1/28 Leonardo M. Ramé > >[...] >>S

Re: [fpc-pascal] TFPCanvasDrawer and anti-alias.

2013-01-28 Thread Leonardo M . Ramé
nd for TAchart. Also you could generate your charts in the browser, using a JavaScript/Html5 library like this one: http://www.humblesoftware.com/flotr2/   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] TFPCanvasDrawer and anti-alias.

2013-01-28 Thread Leonardo M . Ramé
FFont; >  {$ENDIF} >end; > > >Thanks for the fast reply man! :) > > > >ps. I'm very, very happy with the Free Pascal. Now, I'm creating fine my PDFs >and charts. I will make one layer to facilitate the use of some classes of >PowerPDF and TAChart. > > S

Re: [fpc-pascal] Favourite Pascal books

2013-01-22 Thread Leonardo M . Ramé
ic books, but application design in general, like "Patterns of Enterprise Application Architecture" from Martin Fowler. http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420/ref=sr_1_1?s=books&ie=UTF8&qid=135885545

Re: [fpc-pascal] abstract classes

2013-01-21 Thread Leonardo M . Ramé
>  end; > >class function TAbstractClass.GetID: integer; >begin >  Result:= 10; >end; > >var >  ac: TAbstractClass; > >begin >  ac:= TAbstractClass.Create; >  WriteLn(ac.GetID); >  ReadLn; >  ac.Free; >end. > As far as I remember Delphi has the same behavi

Re: [fpc-pascal] Basically on the right track?

2012-12-29 Thread Leonardo M . Ramé
#x27;ll make your life much, much easier. Regards, --  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] A simple HTTP request with FPC standard units

2012-11-23 Thread Leonardo M . Ramé
- Original Message - > From: Michael Van Canneyt > To: FPC-Pascal users discussions > Cc: > Sent: Friday, November 23, 2012 5:07 PM > Subject: Re: [fpc-pascal] A simple HTTP request with FPC standard units > > > > On Fri, 23 Nov 2

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Leonardo M . Ramé
> > From: silvioprog >To: FPC-Pascal users discussions >Sent: Friday, November 23, 2012 2:38 PM >Subject: Re: [fpc-pascal] A simple HTTP request with FPC standard units > > >Done: > > >http://bugs.freepascal.org/view.php?id=23372 > > > > >2012/11/23 silvioprog

Re: RE : [fpc-pascal] Currency symbol wrong location

2012-06-09 Thread Leonardo M . Ramé
ncy is determined by > CurrencyFormat. > >   CurrencyFormat:=0; >   s:=FloatToStrF(123.25,ffCurrency,5,2); >   s:=Format('%m', [123.25]); > > Both calls return $123.25 in s. > > Ludo >  Thanks, that worked. The trick was CurrencyFormat := 0;   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] Currency symbol wrong location

2012-06-09 Thread Leonardo M . Ramé
- Original Message - > From: Leonardo M. Ramé > To: FPC-Pascal users discussions > Cc: > Sent: Saturday, June 9, 2012 12:31 PM > Subject: Re: [fpc-pascal] Currency symbol wrong location > > - Original Message - > >> From: Michael Van Canneyt

Re: [fpc-pascal] Currency symbol wrong location

2012-06-09 Thread Leonardo M . Ramé
- Original Message - > From: Michael Van Canneyt > To: Leonardo M. Ramé ; FPC-Pascal users discussions > > Cc: > Sent: Saturday, June 9, 2012 11:59 AM > Subject: Re: [fpc-pascal] Currency symbol wrong location > > > > On Sat, 9 Jun 2012, Leonardo M. Ra

[fpc-pascal] Currency symbol wrong location

2012-06-09 Thread Leonardo M . Ramé
t;, why is the money symbol at the right side, instead of using the regional setting?. 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] How to find a directory?

2012-04-06 Thread Leonardo M . Ramé
To check if a directory exists you can use the function "DirectoryExists('/path/to/directory')". To traverse your filesystem, just use findfirst-findnext: http://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html Regards, Leonardo M. Ramé http://leona

Re: [fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread Leonardo M . Ramé
Another tip for linux/unix. Try to run the CGI program from the command line, it should output something similar to this: Exception at 00497B3A: Exception: No REQUEST_METHOD passed from server. Otherwise there's an error in your code. Leonardo M. Ramé http://leonardorame.blogspo

Re: [fpc-pascal] Burn a CD

2012-03-15 Thread Leonardo M . Ramé
- Original Message - > From: Marcos Douglas > To: Leonardo M. Ramé ; FPC-Pascal users discussions > > Cc: > Sent: Wednesday, March 14, 2012 12:05 PM > Subject: Re: [fpc-pascal] Burn a CD > > On Wed, Mar 14, 2012 at 7:42 AM, Leonardo M. Ramé > wrote: >

Re: [fpc-pascal] class of - instance created is wrong

2012-03-15 Thread Leonardo M . Ramé
the constructor virtual? > > >It works perfectly now, thanks!!  fpGUI developers can now easily >switch between X11, GDI and AggPas canvas's. :-D > Hi Graeme, this is completely off topic. Does AggPas works in 64bits Linux? I remember it didn't compile last year.

Re: [fpc-pascal] Burn a CD

2012-03-14 Thread Leonardo M . Ramé
creen.   Leonardo M. Ramé http://leonardorame.blogspot.com > > From: stootch >To: fpc-pascal@lists.freepascal.org >Sent: Wednesday, March 14, 2012 4:26 AM >Subject: Re: [fpc-pascal] Burn a CD > >W dniu 13.03.2012 14:13, Marcos Douglas pisze:

Re: [fpc-pascal] JSON Dataset in FCL-DB.

2011-12-17 Thread Leonardo M . Ramé
- Original Message - > From: Leonardo M. Ramé > To: FPC-Pascal users discussions > Cc: > Sent: Saturday, December 17, 2011 10:00 AM > Subject: Re: [fpc-pascal] JSON Dataset in FCL-DB. > > - Original Message - > >> From: Michael Van Can

Re: [fpc-pascal] JSON Dataset in FCL-DB.

2011-12-17 Thread Leonardo M . Ramé
- Original Message - > From: Michael Van Canneyt > To: FPC-Pascal users discussions > Cc: Lazarus mailing list > Sent: Friday, December 16, 2011 5:52 PM > Subject: Re: [fpc-pascal] JSON Dataset in FCL-DB. > > > > On Fri, 16 Dec 2011, Leonardo M. Ramé wro

Re: [fpc-pascal] JSON Dataset in FCL-DB.

2011-12-16 Thread Leonardo M . Ramé
- Original Message - > From: Michael Van Canneyt > To: FPC-Pascal users discussions > Cc: Lazarus mailing list > Sent: Friday, December 16, 2011 2:53 PM > Subject: Re: [fpc-pascal] JSON Dataset in FCL-DB. > > > > On Fri, 16 Dec 2011, Leonardo M. Ramé wrot

Re: [fpc-pascal] JSON Dataset in FCL-DB.

2011-12-16 Thread Leonardo M . Ramé
>to a server. > >I would be glad to recieve feedback, comments. > >Michael. Does this allow executing selects against an sql database and traverse the results using this JSON dataset?   --  Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [fpc-pascal] Markdown parser?

2011-12-05 Thread Leonardo M . Ramé
> > From: Graeme Geldenhuys >To: Leonardo M. Ramé ; FPC-Pascal users discussions > >Sent: Monday, December 5, 2011 8:41 AM >Subject: Re: [fpc-pascal] Markdown parser? > >On 3 December 2011 14:46, Leonardo M. Ramé wrote: >> Hi, d

[fpc-pascal] Markdown parser?

2011-12-03 Thread Leonardo M . Ramé
Hi, does anyone knows if there is a Markdown parser already developed for FreePascal?.   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] Wireless configuration in Windows

2011-11-29 Thread Leonardo M . Ramé
al function: DWORD WINAPI WlanOpenHandle( __inDWORD dwClientVersion, __reserved  PVOID pReserved, __out   PDWORD pdwNegotiatedVersion, __out   PHANDLE phClientHandle ); Pascal conversion: type WlanOpenHandleTyp = function(ClientVersion : DWord;                        

Re: [fpc-pascal] fcl-web TFPHttpServer component problem

2011-11-28 Thread Leonardo M . Ramé
rozen, and its process has to be killed to terminate the http server. > > >-- >Regards, >  - Graeme - > > I think that class was meant to be used as the main program loop. Didn't tested, but what happens if you use it inside a TThread?.   --  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] 3-tier database applications with FPC

2011-10-19 Thread Leonardo M . Ramé
- Original Message - > From: "michael.vancann...@wisa.be" > To: Leonardo M. Ramé ; FPC-Pascal users discussions > > Cc: > Sent: Wednesday, October 19, 2011 11:03 AM > Subject: Re: [fpc-pascal] 3-tier database applications with FPC > > > > On

Re: [fpc-pascal] 3-tier database applications with FPC

2011-10-19 Thread Leonardo M . Ramé
enable compression on server side, and decompress on client side. This approach has the advantage of JSON readability and the small size of binary format. 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] List of Integer/Double etc

2011-10-12 Thread Leonardo M . Ramé
> >From: Sven Barth >To: fpc-pascal@lists.freepascal.org >Sent: Wednesday, October 12, 2011 9:12 AM >Subject: Re: [fpc-pascal] List of Integer/Double etc > >Am 12.10.2011 14:08, schrieb Leonardo M. Ramé: >> Hi, I'm wondering

[fpc-pascal] List of Integer/Double etc

2011-10-12 Thread Leonardo M . Ramé
Hi, I'm wondering if the rtl or a standard package includes classes for handling lists of Integer, Double, and other types. Similar to TStringList, but for numerical types. Thanks in advance, Leonardo M. Ramé http://leonardorame.blogspot.com__

[fpc-pascal] TypeInfo Illegal Expression

2011-09-12 Thread Leonardo M . Ramé
hint? Thanks in advance,  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] 2 bugs ???

2011-09-07 Thread Leonardo M . Ramé
From: Yann Bat >To: "fpc-pascal@lists.freepascal.org" >Sent: Wednesday, September 7, 2011 11:36 AM >Subject: [fpc-pascal] 2 bugs ??? > >Hi, > >I am trying to learn freepascal generics and I think that I have found 2 bugs. > >Tested with FPC 2.4.4 Linux x86 > >== >= BUG 1 - with Si

Re: Re: [fpc-pascal] fpc graph

2011-05-03 Thread Leonardo M . Ramé
ours. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Mon, 5/2/11, johnelee1...@googlemail.com wrote: From: johnelee1...@googlemail.com Subject: Re: Re: [fpc-pascal] fpc graph To: "FPC-Pascal users discussions" Date: Monday, May 2, 2011, 10:03 AM thanks - what are the featur

Re: [fpc-pascal] FPImage and GetDataLineStart

2011-04-21 Thread Leonardo M . Ramé
--- On Thu, 4/21/11, michael.vancann...@wisa.be wrote: > From: michael.vancann...@wisa.be > Subject: Re: [fpc-pascal] FPImage and GetDataLineStart > To: "FPC-Pascal users discussions" > Date: Thursday, April 21, 2011, 11:09 AM > > > On Thu, 21 Apr 2011, Leonar

Re: [fpc-pascal] FPImage and GetDataLineStart

2011-04-21 Thread Leonardo M . Ramé
y > 64-bit pixels. > (16-bit RGBA) > > While these abstractions make it easy to make fp/fcl-image > somewhat > complete, they are also very memory hungry and slow. > > IIRC I accelerated loading/saving simple 8-bit BMP images > 20 to 50 times in > my work code

[fpc-pascal] FPImage and GetDataLineStart

2011-04-20 Thread Leonardo M . Ramé
Hi, I need to write a function that replaces TLazIntfImage by using fpImage, and I can't find an alternative to GetDataLineStart. How can I replace it?. Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Converting .m4a to .wav

2011-03-09 Thread Leonardo M . Ramé
--- On Wed, 3/9/11, Matt Emson wrote: > From: Matt Emson > Subject: Re: [fpc-pascal] Converting .m4a to .wav > To: "FPC-Pascal users discussions" > Date: Wednesday, March 9, 2011, 1:08 PM > On 09/03/2011 12:52, Leonardo M. > Ramé wrote: > > Hi, does anyone

[fpc-pascal] Converting .m4a to .wav

2011-03-09 Thread Leonardo M . Ramé
Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? also, if it allows conversion to other formats, such as .wav? Thanks in advance, Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-p

Re: [fpc-pascal] Forward type not resolved

2011-03-03 Thread Leonardo M . Ramé
--- On Thu, 3/3/11, Leonardo M. Ramé wrote: > From: Leonardo M. Ramé > Subject: [fpc-pascal] Forward type not resolved > To: "FPC-Pascal users discussions" > Date: Thursday, March 3, 2011, 8:06 PM > Hi, I'm trying to create a forward > declaration for a class,

[fpc-pascal] Forward type not resolved

2011-03-03 Thread Leonardo M . Ramé
s; // forward declaration. TOnSqueeze = procedure (AQuote: TQuote); of object; { TQuote } TQuote = class(TCollectionItem) private FAdjClose: Double; FBBand_Diff: Double; ... And, this is the error I'm getting: quote.pas(11,12) Error: Forward type not resolved &q

[fpc-pascal] About fpGUI and browser plugins

2010-12-20 Thread Leonardo M . Ramé
Hi, does anyone knows if it is possible to create browser plugins and use fpGUI on them. Something like Java Applets?. Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] GetTempFileName in Linux

2010-10-05 Thread Leonardo M . Ramé
Well, I need to create BMP files with unique name, to be sent to lpr, then printed.  Instead of using GetTempFileName, I'll use a GUID, with CreateGUID, and GUIDToString. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Tue, 10/5/10, ik wrote: From: ik Subject: Re: [fpc-p

[fpc-pascal] GetTempFileName in Linux

2010-10-05 Thread Leonardo M . Ramé
etTempFileName); end. 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] Command line or CGI Printing

2010-09-15 Thread Leonardo M . Ramé
hen print it, then delete it, much better if I just create a TMemoryStream and send it to lpr. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Wed, 9/15/10, Graeme Geldenhuys wrote: > From: Graeme Geldenhuys > Subject: Re: [fpc-pascal] Command line or CGI Printing > To: "

[fpc-pascal] Command line or CGI Printing

2010-09-15 Thread Leonardo M . Ramé
d for this? Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] VTK Libraries from FPC

2010-08-21 Thread Leonardo M . Ramé
Hi, does anyone knows if there's an Pascal (FPC or Delphi) wrapper for the VTK libraries (http://www.vtk.org) ?. Regards, Leonardo M. Ramé http://leonardorame.blogspot.co ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

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

2010-05-24 Thread Leonardo M . Ramé
--- On Mon, 5/24/10, Graeme Geldenhuys wrote: > From: Graeme Geldenhuys > Subject: Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits > To: "FPC-Pascal users discussions" > Date: Monday, May 24, 2010, 4:31 PM > On 24 May 2010 18:02, Leonardo M. > Ramé wr

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

2010-05-24 Thread Leonardo M . Ramé
s? Would be faster, don't? > > Marcos Douglas Yes, but some times your FCGI app must run on one of those cheap shared hostings where you can't touch the Apache's httpd.conf file to configure the FCGI application. That's why the CGI proxy/gateway approach is

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

2010-05-24 Thread Leonardo M . Ramé
--- On Mon, 5/24/10, ABorka wrote: > From: ABorka > Subject: Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits > To: "FPC-Pascal users discussions" > Date: Monday, May 24, 2010, 3:24 PM > On 5/24/2010 09:52, Leonardo M. Ramé > wrote: > > -

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

2010-05-24 Thread Leonardo M . Ramé
; > Oh my... > > Then I can do this: > var >   s1, s2, s3: TStrings; > begin >   s1 := TStringList.Create; >   s2 := TStringList.Create; >   s3 := TStringList.Create; > end; > > ...and at the end, no memory leaks? > > This is true about Desktop (Wi

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

2010-05-24 Thread Leonardo M . Ramé
-- On Mon, 5/24/10, ABorka wrote: > From: ABorka > Subject: Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits > To: "FPC-Pascal users discussions" > Date: Monday, May 24, 2010, 1:48 PM > On 5/24/2010 09:02, Leonardo M. Ramé > wrote: > > Aldo, I know

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

2010-05-24 Thread Leonardo M . Ramé
Aldo, I know it has templates, the problem I'm facing now is in Windows Seven 64bits, It can't read environment/GET/POST vars, so the GetVar function doesn't return anything. That's why I had to look elsewere. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Mon, 5

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

2010-05-24 Thread Leonardo M . Ramé
--- On Mon, 5/24/10, Marcos Douglas wrote: > From: Marcos Douglas > Subject: Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits > To: "FPC-Pascal users discussions" > Date: Monday, May 24, 2010, 12:04 PM > On Mon, May 24, 2010 at 11:51 AM, > Leonardo

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

2010-05-24 Thread Leonardo M . Ramé
r a simple CGI program. Anyway, I'll use it for this project. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Mon, 5/24/10, leledumbo wrote: > From: leledumbo > Subject: Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits > To: fpc-pascal@lists.freepascal.org > Da

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

2010-05-23 Thread Leonardo M . Ramé
etCgiRequestUri: /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é ht

Re: [fpc-pascal] OOP and XML usage

2010-01-27 Thread Leonardo M . Ramé
apart from having plain types, it includes properties of type Object, you can adapt the NodeEvent method, and check for ANode.ParentNode.NodeName = 'MyInnerObject', then set FMyObject.MyInnerObject.SomeProperty. That's the way we use to populate an object from an XML file. Leonardo M.

Re: [fpc-pascal] GetPropValue and Unknown property

2009-06-23 Thread Leonardo M . Ramé
-1 do writeln(PropList[I]^.name); (* Free memory allocated for PropList *) FreeMem(PropList); end; end; Leonardo M. Ramé http://leonardorame.blogspot.com - Original Message From: Mattias Gärtner To: fpc-pascal@lists.freepascal.org Sent: Tuesday, June 23, 2009 10:20:10 AM Subje

Re: [fpc-pascal] MSEide+MSEgui rev 2.2beta1

2009-06-23 Thread Leonardo M . Ramé
Great!, please don't forget to add this announcement to http://www.msegui.org/news Leonardo M. Ramé http://leonardorame.blogspot.com - Original Message From: Martin Schreiber To: FPC-Pascal discussions Sent: Tuesday, June 23, 2009 8:58:18 AM Subject: [fpc-pascal] MSEide+M

Re: [fpc-pascal] GetPropValue and Unknown property

2009-06-23 Thread Leonardo M . Ramé
*) lProps := GetTypeData(AClass.ClassInfo)^.PropCount; if lProps <> 0 then begin (* Properties list to be analyzed *) for I := 0 to GetPropList(AClass.ClassInfo, PropList) -1 do writeln(PropList[I]^.name); end; end; Leonardo M. Ramé http://leonardorame.blogsp

Re: [fpc-pascal] TPicture (Graphics unit)

2009-06-07 Thread Leonardo M . Ramé
Thanks Graeme, I'll take a look at fpimage unit. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Sun, 6/7/09, Graeme Geldenhuys wrote: > From: Graeme Geldenhuys > Subject: Re: [fpc-pascal] TPicture (Graphics unit) > To: "FPC-Pascal users discussions" >

[fpc-pascal] TPicture (Graphics unit)

2009-06-06 Thread Leonardo M . Ramé
Hi, I'm porting a Delphi application from Windows to FreeBSD, and one of my unit uses the TPicture class. In Delphi this class can be found in Graphics.pas, but I can't find it in FPC. Is this class replaced by a similar one? I'm using FPC 2.2.4. Leonar

Re: [fpc-pascal] FindFirst...FindClose

2009-05-18 Thread Leonardo M . Ramé
This sounds good, just also check what happens if FindClose receives an invalid handle. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Mon, 5/18/09, Michael Van Canneyt wrote: > From: Michael Van Canneyt > Subject: Re: [fpc-pascal] FindFirst...FindClose > To: "FP

Re: [fpc-pascal] FindFirst...FindClose

2009-05-18 Thread Leonardo M . Ramé
the GlobFree function, it doesn't matter if files where found or not. I can't confirm this, but maybe FindFirst in linux is a wrapper to Glob, and that's why FindClose (in Linux) must be called outside the if. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Mon, 5/18/

[fpc-pascal] FindFirst...FindClose

2009-05-18 Thread Leonardo M . Ramé
) <> 0; end; FindClose(sr); Can be this the cause of the problem in my application?. Thanks in advance. Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

Re: [fpc-pascal] Re: XML pretty formatter

2009-05-15 Thread Leonardo M . Ramé
People, my problem was solved with the help of xsltproc in a Linux box where one our services is running, and it works really good. But it could be nice to have an Object Pascal version of the library, to be able to do the same without needing to use an external program. Leonardo M. Ramé

Re: [fpc-pascal] XML Pretty Formatter

2009-05-14 Thread Leonardo M . Ramé
Thanks Graeme!, pretty_print.xsl solved the issue. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Thu, 5/14/09, Graeme Geldenhuys wrote: > From: Graeme Geldenhuys > Subject: Re: [fpc-pascal] XML Pretty Formatter > To: "FPC-Pascal users discussions" > Date:

Re: [fpc-pascal] Re: XML pretty formatter

2009-05-14 Thread Leonardo M . Ramé
Thanks Seth and Graeme, the problem is the program must run on a remote server that hasn't installed Tidy.pm, but fortunately it has xsltproc, so I'll try Graeme's solution. BTW, is there any Pascal source code out there to do this?. Leonardo M. Ramé http://leonardorame.blogsp

[fpc-pascal] XML Pretty Formatter

2009-05-14 Thread Leonardo M . Ramé
e XML to a log file and those spaces make very difficult to read the logs. Thanks in advance. 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] A question or two regarding the FPC

2009-05-08 Thread Leonardo M . Ramé
Wow!, is good to know I'm not the only Argentinian using FPC. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Fri, 5/8/09, Gustavo Enrique Jimenez wrote: > From: Gustavo Enrique Jimenez > Subject: Re: [fpc-pascal] A question or two regarding the FPC > To: &qu

[fpc-pascal] httpdefs.pp multipart/form-data

2009-04-12 Thread Leonardo M . Ramé
Hi, I'm looking at httpdefs.pp file from FCL-Web and found that it handles multipart/form-data. I've been using a 3rd party parser for this kind of data, but it lacks of a good method of parsing large file uploads. My question is: ProcessMultipart method, handles the parsing in chunks of data,

Re: [fpc-pascal] Re: Servlet server for Fpc apps

2009-03-30 Thread Leonardo M . Ramé
Andrew, do you have an example, or web page where we can read more about the project? Leonardo M. Ramé --- On Mon, 3/30/09, Andrew Brunner wrote: > From: Andrew Brunner > Subject: Re: [fpc-pascal] Re: Servlet server for Fpc apps > To: "FPC-Pascal users discussions" &g

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-27 Thread Leonardo M . Ramé
Eduardo, I made an example (a couple of years ago) of what you're trying to do: http://leonardorame.blogspot.com/2007_04_01_archive.html Leonardo M. Ramé http://leonardorame.blogspot.com --- On Fri, 3/27/09, Eduardo Morras wrote: > From: Eduardo Morras > Subject: Re: [fpc-pasc

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-27 Thread Leonardo M . Ramé
Eduardo, the short answer is no, it wouldn't work. Tomcat doesn't understand binary files, it only "executes" Java classes. Your options are: 1) CGI. 2) Apache Modules. 3) Your own web server. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Fri, 3/27/09, E

[fpc-pascal] TStream ReadComponent

2009-03-20 Thread Leonardo M . Ramé
Hi, I'm trying to read a file stream created using TMemoryStream's WriteComponent method with a Delphi 7 program. To read the component I use TMemoryStream's ReadComponent method. When I read use ReadCompoent, a EReadError is raised. Does anyone tried this?. The same program works perfectly in

Re: [fpc-pascal] fpc 2.2.2 in fink for Mac OS X

2008-12-19 Thread Leonardo M . Ramé
Hi Karl-Michael, what is Fink? where can I look about it?. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Fri, 12/19/08, Schindler Karl-Michael wrote: > From: Schindler Karl-Michael > Subject: [fpc-pascal] fpc 2.2.2 in fink for Mac OS X > To: fpc-pascal@lists.freepascal.o

Re: [fpc-pascal] Re: Porting linux to pascal, would it be possible ?

2008-12-05 Thread Leonardo M . Ramé
the problem here (again) is not the language, it's the critical mass of users of the language. Using C for Linux was a good bet, not because the language is good (Pascal is way better for me), but because C has a wider user base who can fix/add features. Leonardo M. Ramé

Re: [fpc-pascal] Starting out with Free Pascal

2008-12-01 Thread Leonardo M . Ramé
That's a partial truth, it takes the same time to create basic screens/dialogs using FoxPro or data aware components with Lazarus, but the level of customization and flexibility you can reach using Lazarus is way ahead of FoxPro. Leonardo M. Ramé http://leonardorame.blogspot.com --- O

[fpc-pascal] Preprocessor

2008-11-24 Thread Leonardo M . Ramé
Hi, does exists something like a preprocessor for FPC?, something like DLangExtensions (http://andy.jgknet.de/blog/?p=320) from Andreas Hausladen? It could be really neat to add such a feature. Leonardo. ___ fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] CGI upload app

2008-11-04 Thread Leonardo M . Ramé
If you checkout Powtils from svn at http://powtils.googlecode.com/svn/dev you'll find an example inside examples/upload-file. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Tue, 11/4/08, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > From: Graeme Geldenhuys <

Re: [fpc-pascal] Exe size

2008-09-05 Thread Leonardo M . Ramé
Paul, can you post an example of what do you want to do? a couple of API calls your Win32 app is calling?. Maybe we can help translating those calls to the WinCE version (I'm pretty sure the functions will work without changes). Leonardo M. Ramé http://leonardorame.blogspot.com --- On F

Re: [fpc-pascal] Exe size

2008-09-04 Thread Leonardo M . Ramé
Take a look at http://wiki.freepascal.org/KOL-CE, this project was specially started to create a "framework" for creating very small .exe applications using Delphi and FPC. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Thu, 9/4/08, Paul <[EMAIL PROTECTED]> wrot