Re: [fpc-pascal] streaming file from zip into my app

2007-12-01 Thread Darius Blaszijk
Note if sb works on zlib, there still is a bugreport about OOo files and zlib in mantis (mismatch in CRC). I tried to fix it, but got stuck Please note the following thread, as it might be the answer in this case. http://groups.google.com/group/comp.compression/browse_thread/thread/c74cb4

Re: [fpc-pascal] streaming file from zip into my app

2007-12-01 Thread Darius Blaszijk
Marc Santhoff wrote: Am Freitag, den 30.11.2007, 23:09 +0200 schrieb Graeme Geldenhuys: On 30/11/2007, Marc Santhoff <[EMAIL PROTECTED]> wrote: But I still have questions about the code. Do I understand correctly that Graeme contributed the de-/compression code but it still has to get i

[fpc-pascal] gprof setup on windows

2007-11-01 Thread Darius Blaszijk
I would like to profile my code on windows. I tried searching the wiki, but without much success on how to do that on windows. Can anyone explain me in a few words how this can be done? Kind regards, Darius ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] fpc verbosity

2007-09-06 Thread Darius Blaszijk
Anyone care to comment? Sorry for that, I missed the commit. Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpc verbosity

2007-09-06 Thread Darius Blaszijk
Anyone care to comment? Darius Darius Blaszijk wrote: Vincent Snijders wrote: Jonas Maebe schreef: On 23 Aug 2007, at 01:09, Darius Blaszijk wrote: Is the following correct? C:\FPC\rtl>fpc -v0 myproject.pp Free Pascal Compiler version 2.3.1 [2007/08/22] for i386 Copyright (c) 1993-2

[fpc-pascal] fpc verbosity

2007-08-22 Thread Darius Blaszijk
Is the following correct? C:\FPC\rtl>fpc -v0 myproject.pp Free Pascal Compiler version 2.3.1 [2007/08/22] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Shouldn't fpc -v0 -l myproject.pp give the above result? I would expect not to see anything at all. Is there a way to prevent anything

Re: [fpc-pascal] Problem with interfaces

2007-08-19 Thread Darius Blaszijk
I've had similar issues some time ago. Have you tried FPC 2.3.1? It has a some interface fixes. Darius Joao Morais wrote: Hello, I have the following code: {$mode objfpc} interface ... function DefaultObj: TObject; implementation var _Holder: IHolder; function DefaultObj: TObject; be

[fpc-pascal] Unknown usage of function FixPath

2007-08-13 Thread Darius Blaszijk
In fpmkunit.pp I found the function FixPath for which I don't understand the exact purpose of. What happens is that if I issue an install command the BaseInstallDir takes the FPCDIR env variable (which is c:\fpc in my case) (line 1472). This value is then passed on to FixPath which converts all

[fpc-pascal] Inconsistencies in fpmake?

2007-08-12 Thread Darius Blaszijk
I was doing some tests with fpmake and came across what appears to be an inconsistency. When fpmaking a program a units/cpu-os is created but the commandline parameters for FPC are "-FE." which causes the tool and possible other units to be placed in the directory where the program is located.

Re: [fpc-pascal] Where is fpmkconv?

2007-08-12 Thread Darius Blaszijk
s Jonas Maebe wrote: On 12 Aug 2007, at 10:43, Darius Blaszijk wrote: Jonas Maebe wrote: On 12 Aug 2007, at 09:51, Darius Blaszijk wrote: If Host = i386-linux and Target = i386-win32 then {$I %FPCTARGETOS%} = linux? Instead of the expected {$I %FPCTARGETOS%} = win. Which is ok because the

Re: [fpc-pascal] Where is fpmkconv?

2007-08-12 Thread Darius Blaszijk
Jonas Maebe wrote: On 12 Aug 2007, at 09:51, Darius Blaszijk wrote: If Host = i386-linux and Target = i386-win32 then {$I %FPCTARGETOS%} = linux? Instead of the expected {$I %FPCTARGETOS%} = win. Which is ok because the target IS i386-win32. Not the target for which you compile fpmake

Re: [fpc-pascal] Where is fpmkconv?

2007-08-12 Thread Darius Blaszijk
Vincent Snijders wrote: I would say just replace the macros with {$I %FPCTARGETOS%} and {$I %FPCTARGETCPU%} but how do others feel? I think that won't work for cross compilation. It returns the targetos where fpmake s running, not the targetos you want to compile too. Are you shure? I mean

Re: [fpc-pascal] Where is fpmkconv?

2007-08-11 Thread Darius Blaszijk
Vincent Snijders wrote: Darius Blaszijk schreef: Do we need to use a "Case Installer.OS of" construct or can we implement$(CPU_TARGET) and $(OS_TARGET) as functions that return a string with the current targets? I would say just replace the macros with {$I %FPCTARGETOS

Re: [fpc-pascal] Where is fpmkconv?

2007-08-11 Thread Darius Blaszijk
Btw, How would ./units/$(CPU_TARGET)-$(OS_TARGET) be translated to fpmake.pp format? Do we need to use a "Case Installer.OS of" construct or can we implement$(CPU_TARGET) and $(OS_TARGET) as functions that return a string with the current targets? I would say just replace the macros with {$I

Re: [fpc-pascal] Where is fpmkconv?

2007-08-11 Thread Darius Blaszijk
Peter Vreman wrote: I got the following error message: Unknown name/value pair in compiler section : unittargetdir Unknown name/value pair in clean section : files Which is: unittargetdir=./units/$(CPU_TARGET)-$(OS_TARGET) files=$(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) \ $(

Re: [fpc-pascal] Where is fpmkconv?

2007-08-11 Thread Darius Blaszijk
Peter Vreman wrote: I got the following error message: Unknown name/value pair in compiler section : unittargetdir Unknown name/value pair in clean section : files Which is: unittargetdir=./units/$(CPU_TARGET)-$(OS_TARGET) files=$(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) \ $(w

Re: [fpc-pascal] Where is fpmkconv?

2007-08-11 Thread Darius Blaszijk
Michael Van Canneyt wrote: fppkg mkconvert Should be "fppkg convertmk" ;) It will convert the Makefile.fpc in the current directory and compiles and runs it. I just tested here, and it works fine. Right, much better indeed :) But I got the following error message: Unknown name/valu

Re: [fpc-pascal] Where is fpmkconv?

2007-08-11 Thread Darius Blaszijk
sions-default.dat" The FPC make tool encountered the following error: Package "Makefile.fpc" not found. I also tried giving the full path to the makefile without success. Darius Michael Van Canneyt wrote: On Sat, 11 Aug 2007, Darius Blaszijk wrote: Michael, Thanks for explaining

Re: [fpc-pascal] Where is fpmkconv?

2007-08-11 Thread Darius Blaszijk
-va to --verbosity=all to just -v and --verbosity. No luck. Darius Michael Van Canneyt wrote: On Sat, 11 Aug 2007, Darius Blaszijk wrote: I was reading the readme in FPC\utils\fppkg and saw that there should be a tool called fpmkconv that converts makefile.fpc to fpmake.pp files. I just

[fpc-pascal] Where is fpmkconv?

2007-08-11 Thread Darius Blaszijk
I was reading the readme in FPC\utils\fppkg and saw that there should be a tool called fpmkconv that converts makefile.fpc to fpmake.pp files. I just cannot find it in the FPC sources. Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Alternative to Makefiles for fpGUI

2007-08-10 Thread Darius Blaszijk
Johann Glaser wrote: Is there any documentation (like the things you've written in this thread) in the Wiki? If not, I'd like to copy-paste (and clean up) your discussion. Please point me to a place where the information best fits. I was also thinking the same ;) . I've created a stub here: h

Re: [fpc-pascal] Alternative to Makefiles for fpGUI

2007-08-10 Thread Darius Blaszijk
Hi Michael, Michael Van Canneyt wrote: The idea is that you do a fppkg this will look in a database for the package, extract it, and the compile fpmake.pp and run it. The fpmake contains all configuration to make and zip the package. Aha, this clears up some mist in my mind. But I still

Re: [fpc-pascal] Metaware

2007-06-18 Thread Darius Blaszijk
Tom Walsh wrote: Daniël Mantione wrote: Wow... I doubt I would recognize that code as Pascal if I wasn't told it was. Free Pascal implements the UCSD-Pascal derived dialects of the language (Turbo Pascal, Delphi, Metrowerks Pascal). Daniël == begin export (li

Re: [fpc-pascal] fpcunit documentation?

2007-06-12 Thread Darius Blaszijk
The link you gave below to the pdf seems to point to a valid file. Please recheck it. Darius Tom Verhoeff wrote: I know FreePascal includes the fpcunit unit testing framework (the compiler knows where to find it), but I can't seem to find any documentation via the regular www.freepascal.org,

Re: [fpc-pascal] Search order for libraries, how to influence; using GMP

2007-06-12 Thread Darius Blaszijk
BTW: JediMath has a 100% pascal implementation for arbitrary length arithmatic. Checkout JmLargeFloat. Darius Tom Verhoeff wrote: I am trying to use the GNU Multi-Precision (GMP) library with FreePascal under Linux. I have a Pascal interface for GMP (originally for Kylix; translated from C he

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Darius Blaszijk
Thanks to all for their help. For now I will stick to psp because I need it to work with 2.0.4. Darius Michael Van Canneyt wrote: On Tue, 5 Jun 2007, Darius Blaszijk wrote: Hi I would like to upload a file through a web page. How can I do this using FPC? Is there any example available

[fpc-pascal] CGI upload app

2007-06-05 Thread Darius Blaszijk
Hi I would like to upload a file through a web page. How can I do this using FPC? Is there any example available? Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Question about TProcess

2007-05-10 Thread Darius Blaszijk
Thanks Vincent, I did not think of it as there are only about 30lines of output. It works now. Darius Vincent Snijders wrote: Darius Blaszijk schreef: The following piece of code is giving me headaches. When I add the option poUsePipes, the application starts and does not seem to do

[fpc-pascal] Question about TProcess

2007-05-10 Thread Darius Blaszijk
The following piece of code is giving me headaches. When I add the option poUsePipes, the application starts and does not seem to do anything else anymore. It just opens a commandline terminal and that is that. When I leave the option out the application actually starts "make" and then crashes

Re: [fpc-pascal] Windows-->Linux library

2007-02-14 Thread Darius Blaszijk
There's also LNet. http://wiki.lazarus.freepascal.org/lNet Here's a list of other available networking components: http://wiki.lazarus.freepascal.org/Components_and_Code_examples#Networking Darius - Original Message - From: "Matt Emson" <[EMAIL PROTECTED]> To: "FPC-Pascal users discu

Re: [fpc-pascal] Can someone help me to debug and correct this code?

2007-01-14 Thread Darius Blaszijk
Goksie, You could also start reading the output of the FPC compiler :) Normally it gives hints, warning and errors where to start looking for to correct your code. Iow don't ask for the obvious before looking yourself first. Darius - Original Message - From: "Daniël Mantione" <[EMAI

[fpc-pascal] OpenGL question

2007-01-02 Thread Darius Blaszijk
I'm porting an app from Delphi to FPC wich uses OpenGL. As this is my first experience with OpenGL I'm having some problems. Under windows it already works, but under linux I seem to need an alternative for wglUseFontBitmaps. I tried looking through the sources from the opengl package in FPC but

Re: [fpc-pascal] Reading text from images

2006-12-09 Thread Darius Blaszijk
This technique is called OCR. No idea if there is a pascal implementation, but it should not be too hard to make one. It's based on neural networks that "learn" to recognize any character from any font. Darius - Original Message - From: "Antal" <[EMAIL PROTECTED]> To: Sent: Saturday

Re: [fpc-pascal] fpcmake question

2006-08-29 Thread Darius Blaszijk
Can't answer that one for you (perhaps just try?). But I would suggest you try using prerules to set a variable. The LCLPLATFORM is such a variable in the lazarus makefiles; [prerules] # # LCL Platform ifndef LCL_PLATFORM ifneq ($(findstring $(OS_TARGET),win32 win64),) LCL_PLATFORM=win32 else L

Re: [fpc-pascal] Free Pascal widget set

2006-08-18 Thread Darius Blaszijk
It looks like a very nice job. I like the auto-size for translation. I Yeah the layout managers are great!! I always liked the idea looking at Glade and Qt. Just a note, but the "auto-sizing" of components as depicted in the fig2. example is perfectly possible with Anchoring already. There'

Re: [fpc-pascal] best way to execute external program

2006-08-09 Thread Darius Blaszijk
Look for TProcess. Darius - Original Message - From: "Bisma Jayadi" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 09, 2006 1:49 PM Subject: [fpc-pascal] best way to execute external program Hi all... What is the best approach to execute external program from within our own appl

Re: [fpc-pascal] fpcmake questions

2006-07-28 Thread Darius Blaszijk
Is there somewhere a description on how to use environment variables in FPCMake? I've been searching the programmers manual, but no success. Also is it possible to use a config file to declare some variables? Darius - Original Message - From: "Darius Blaszijk" <[EMA

Re: [fpc-pascal] X Windows and FPC

2006-07-28 Thread Darius Blaszijk
Hi Graeme, Why don't you release the code yet? Put a notification somewhere on the wiki with a download link, or even better ask nicely to the Lazarus or FPC crew to add it to SVN as a subproject. I'm shure they don't mind ;) Perhaps one or two will join you and you will get more done in less

Re: [fpc-pascal] X Windows and FPC

2006-07-28 Thread Darius Blaszijk
Try this link, http://world.altavista.com/. It's not perfect, but it helps. ;) Darius - Original Message - From: "Graeme Geldenhuys" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Friday, July 28, 2006 10:22 AM Subject: [fpc-pascal] X Windows and FPC Hi, I found th

Re: [fpc-pascal] fpcmake questions

2006-07-28 Thread Darius Blaszijk
ue ... Is my emails on the 9th July in FPC-Devel mailing list. Titled "fpcmake keeps failing". I had the FPCDIR set wrong... It must point to the fpc source directory and not the fpc root directory.. export FPC=/opt/fpc-2.1.1/bin/ppc386 export FPCDIR=/opt/fpc-2.1.1/src Regards, Gr

[fpc-pascal] fpcmake questions

2006-07-28 Thread Darius Blaszijk
I have two questions regarding FPCMake.   1. Whe I do an FPCMake I get the following error;   Processing Makefile.fpcError: Target "win32", package "rtl" not found   What is causing this error, what does it mean?   2. I'm using the LCL in my application and I need to enter it as a unitdir

Re: [fpc-pascal] Clueless here

2006-06-30 Thread Darius Blaszijk
I'm using 2.0.2 on winxp Darius - Original Message - From: "Dominique Leducq" <[EMAIL PROTECTED]> To: Sent: Friday, June 30, 2006 5:15 PM Subject: Re: [fpc-pascal] Clueless here On Fri, 30 Jun 2006 12:30:33 +0200 "Darius Blaszijk" <[EMAIL PR

Re: [fpc-pascal] Clueless here

2006-06-30 Thread Darius Blaszijk
I did as you and Michalis suggested, but it makes no difference the application keeps crashing. I keep getting a " Invalid floating point operation".   Darius - Original Message - From: mariano podesta To: FPC-Pascal users discussions Sent: Thursday, June 29, 2006

[fpc-pascal] polymorphism question

2006-03-03 Thread Darius Blaszijk
I would like to declare a polymorph class. The class has several properties and it's the read and write specifiers that I want to be virtual abstract. So derived classes override the read and write specifiers. The problem however is that I get an EAbstractError. The property is still conside

Re: [fpc-pascal] FPDoc question

2005-09-27 Thread Darius Blaszijk
On Mon, 2005-09-26 at 10:10, Michael Van Canneyt wrote: > > - can I find somewhere a description on topic tags?? I have searched the > > reference manual, but it seems it's not documented there. > > Strange, what version of the docs do you have ? It's definitely > documented, it was already for 2.

Re: [fpc-pascal] Extending FPDoc

2005-09-18 Thread Darius Blaszijk
On Fri, 2005-09-16 at 22:14, Sebastian Günther wrote: > I think I can easily add this. I think it would be sufficient to 'just' > support it, without usage within the doc writers? I don't see much use in that. If text does not appear back in the documentation then there is no point adding text.

Re: [fpc-pascal] Extending FPDoc

2005-09-18 Thread Darius Blaszijk
On Fri, 2005-09-16 at 22:17, Michael Van Canneyt wrote: > I'd rather you keep these todo separate. It'll slow down parsing > (which is already horribly slow) and I see no added value. If you must Could you elaborate on that?? I don't see a problem in adding a tag. While indeed it will slow down par

[fpc-pascal] XML question

2005-09-11 Thread Darius Blaszijk
thing to n.NodeValue eventually. Darius Blaszijk ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ExecuteProcess

2005-07-28 Thread Darius Blaszijk
> Have you checked out AssignStream. It works well.. might be available on *nix > only though. I will check it, although I "prefer" a platform independent aproach. Darius Blaszijk ___ fpc-pascal maillist - fpc-pascal@lists.fre

[fpc-pascal] ExecuteProcess

2005-07-28 Thread Darius Blaszijk
apable of handling pipes, is there a workaround, or an alternative?? Darius Blaszijk ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Suspending app

2005-06-21 Thread Darius Blaszijk
crossplatform alternative?? Darius Blaszijk ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] strange behaviour of readkey...or not

2005-06-20 Thread Darius Blaszijk
Florian, Thanks. I have fixed it using: if KeyPressed then ch := ReadKey else ch := ''; I know I should have know better, but for some strange reason only readkey in a previous version seemed to work just fine. Thats why I was confused. Darius Blaszijk

[fpc-pascal] strange behaviour of readkey...or not

2005-06-20 Thread Darius Blaszijk
en I press a key other than q. In my example the fileage test is only done once. Am I under the wrong impression that I should pull it off using readkey?? What is the alternative?? Darius Blaszijk ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org