Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Tomas Hajny
On Mon, May 30, 2011 16:16, michael.vancann...@wisa.be wrote: Try the following code: Img:=TFPMemoryImage.Create(0,0); Img.UsePalette:=False; Img.loadFromFile(FileList[i]); That should work much faster. The reason is probably that the default image created by the reader uses a palette,

Re: [fpc-pascal] FPC 2.4.2 source

2011-05-22 Thread Tomas Hajny
On Sat, May 21, 2011 13:44, Bernd Kreuss wrote: On 21.05.2011 12:59, Jonas Maebe wrote: They don't want to force everyone to install firebird, mysql, postgresql, ptcgraph, gtk, gtk2, qt and every other single thing for which FPC has bindings. force is the keyword here. The entire following

Re: [fpc-pascal] Conversion between ordinals and pointers is not portable

2011-03-02 Thread Tomas Hajny
On Wed, March 2, 2011 09:02, Roland Turcan wrote: Hello, I have this code: . . p := PByteArray (PtrUInt (@FData.Content[0]) + MOffset); ... But the compiler informs about %subj%. How to get rid of this warning and to make code portable? At least with 2.4.2 it is not a warning but

Re: [fpc-pascal] SysLocale usage

2011-02-20 Thread Tomas Hajny
On 20 Feb 11, at 22:25, Michael Van Canneyt wrote: On Sun, 20 Feb 2011, ik wrote: Hello, I found out that the SysLocale is only initialized on Windows. Should it be used on other OS, or is it a Windows specific variable ? Well, the idea is that it is initialized on all OSes,

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread Tomas Hajny
On Sat, February 19, 2011 02:41, waldo kitty wrote: On 2/18/2011 04:47, Tomas Hajny wrote: On Fri, February 18, 2011 02:24, waldo kitty wrote: First of all, you should check whether the missing units are supposed to be platform independent or not. yes, part of what i'm running

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread Tomas Hajny
On Sat, February 19, 2011 06:36, waldo kitty wrote: On 2/18/2011 04:47, Tomas Hajny wrote: On Fri, February 18, 2011 02:24, waldo kitty wrote: . . ok, as i wrote before, i would attempt to provide more information... here's what i'm getting with the attached source code when attempting

Re: [fpc-pascal] Fingerprinting operation of a program

2011-02-19 Thread Tomas Hajny
On Sat, February 19, 2011 15:18, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 18 February 2011 18:19, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: I need to trace through a program, running on two different systems which might or might not have the same OS, in order to

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread Tomas Hajny
On 19 Feb 11, at 14:53, waldo kitty wrote: On 2/19/2011 08:45, Tomas Hajny wrote: On Sat, February 19, 2011 06:36, waldo kitty wrote: Fatal: Can't find unit dynlibs used by synafpc Yes - unit dynlibs (loading of DLLs on demand) is not supported under GO32v2 for obvious reasons

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread Tomas Hajny
On 19 Feb 11, at 18:34, waldo kitty wrote: On 2/19/2011 15:27, Tomas Hajny wrote: On 19 Feb 11, at 14:53, waldo kitty wrote: i was also incorrect... on the OS/2 box, in Mode: DEBUG with Target: OS/2, it is giving the following... Fatal: Can't find unit UnixUtil used by synautil i'm

Re: [fpc-pascal] help with synapse mime routines...

2011-02-18 Thread Tomas Hajny
On Fri, February 18, 2011 02:24, waldo kitty wrote: On 2/17/2011 18:16, Kevin Jesshope wrote: . . my next problem is to get it compiling on my OS/2 box with FPC 2.4.2 and so far, that is not working... complaints of missing units and include files that i just don't know where to tell the

Re: [fpc-pascal] Re: Permuted index (KWIC) of function descriptions

2011-01-29 Thread Tomas Hajny
On Fri, January 28, 2011 21:05, Ben Smith wrote: 2011/1/28 Tomas Hajny . . be indeed nice. ;-) Proper support for IBM .INF documents (including the OS/2 API documentation) in his viewer would be very nice too. ;-))) I remember using OS/2 years ago, and from memory the OS/2 API

Re: [fpc-pascal] Re: Permuted index (KWIC) of function descriptions

2011-01-28 Thread Tomas Hajny
On Fri, January 28, 2011 10:29, Marco van de Voort wrote: In our previous episode, Graeme Geldenhuys said: As far as I remember the chm search only indexes whole words. So searching for space would not return LotsOfSpace I'm not sure if it would find SpaceFoo since it starts with space.

Re: [fpc-pascal] command for Linux for me to create fp ?

2011-01-16 Thread Tomas Hajny
On 17 Jan 11, at 4:27, Pew (piffle.the.cat) wrote: Hi Robert, On 01/17/2011 03:59 AM, Mark Morgan Lloyd wrote: Robert Wolfe wrote: On 01/16/2011 11:03 AM, Pew (piffle.the.cat) wrote: Hi all, I am trying to build fp from 3.5.1 snapshot and I don't know what the command is. I

Re: [fpc-pascal] command for Linux for me to create fp ?

2011-01-16 Thread Tomas Hajny
On 16 Jan 11, at 17:36, Mark Morgan Lloyd wrote: Pew (piffle.the.cat) wrote: On 01/17/2011 03:59 AM, Mark Morgan Lloyd wrote: Peter, I do not claim to be an experienced builder and I usually work from a source release (currently 2.4.2) rather than from SVN so your mileage may vary.

Re: [fpc-pascal] Re: Lo

2011-01-13 Thread Tomas Hajny
On Thu, January 13, 2011 09:01, _-jan...@web.de wrote: A simple but fully functional kludge to make lo compatible with Delphi is type lo=byte; Unfortunately for the similar cases of hi and swap you must provide a function which cannot be used in a manifest constant expression. Well, you

Re: [fpc-pascal] Re: Lo

2011-01-13 Thread Tomas Hajny
On Thu, January 13, 2011 11:53, Jonas Maebe wrote: On 13 Jan 2011, at 09:32, Tomas Hajny wrote: On Thu, January 13, 2011 09:01, _-jan...@web.de wrote: A simple but fully functional kludge to make lo compatible with Delphi is type lo=byte; Unfortunately for the similar cases of hi

Re: [fpc-pascal] The new Delphi 2010 RTTI

2011-01-10 Thread Tomas Hajny
On Mon, January 10, 2011 13:46, alexv...@mail.ru wrote: 10.01.2011 15:31, Marco van de Voort пиŃ#65533;ĐľŃ#65533;: In our previous episode, alexv...@mail.ru said: But I want packages to be binary portable between OS (on target processor architecture) That's effectively not possible with all

Re: [fpc-pascal] Progress indication while linking

2010-12-28 Thread Tomas Hajny
On Tue, December 28, 2010 11:04, Mark Morgan Lloyd wrote: On low-spec systems (for example Linux on ARM with 32Mb or Solaris on SPARC with 128Mb) linking a large project such as the Lazarus IDE can take several days. Is it possible to get any sort of activity indication that confirms that

RE: [fpc-pascal] Building FPC trunk on XP win64

2010-11-26 Thread Tomas Hajny
On Thu, November 25, 2010 12:17, Birger Jansen wrote: Well, bash is probably the problem. FPC doesn't provide bash, so somehow unix utilities from some other set were used (cygwin,mingw) and they complain that they don't run in their own environment. To test this, sanitize your PATH so that

Re: Re[2]: [fpc-pascal] Text scan in text files - (was: Full text scan - PDF files)

2010-11-02 Thread Tomas Hajny
On Mon, November 1, 2010 21:52, José Mejuto wrote: . . So if you are looking for ASCII words, use PDF2Text and use the POS function over the result: function HaveString(Filename: String; TheString: string): Boolean; var F: TFileStream; S: String; AtPos: integer; begin

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Tomas Hajny
On Mon, November 1, 2010 19:10, Marco van de Voort wrote: In our previous episode, Marcos Douglas said: albertonardu...@yahoo.com wrote: Somebody can help me please? I need to search strings in Text files using just FPC. how about reading every line and then using Pos() to see if some

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Tomas Hajny
On Mon, November 1, 2010 19:20, Marcos Douglas wrote: On Mon, Nov 1, 2010 at 3:10 PM, Marco van de Voort mar...@stack.nl wrote: In our previous episode, Marcos Douglas said: albertonardu...@yahoo.com wrote: Somebody can help me please? I need to search strings in Text files using just FPC.

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Tomas Hajny
On Mon, November 1, 2010 19:42, Marcos Douglas wrote: On Mon, Nov 1, 2010 at 3:36 PM, Tomas Hajny xhaj...@hajny.biz wrote: On Mon, November 1, 2010 19:20, Marcos Douglas wrote: On Mon, Nov 1, 2010 at 3:10 PM, Marco van de Voort mar...@stack.nl wrote: In our previous episode, Marcos Douglas

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Tomas Hajny
On Mon, November 1, 2010 19:34, Marcos Douglas wrote: On Mon, Nov 1, 2010 at 3:31 PM, Tomas Hajny xhaj...@hajny.biz wrote: On Mon, November 1, 2010 19:10, Marco van de Voort wrote: In our previous episode, Marcos Douglas said: albertonardu...@yahoo.com wrote: Somebody can help me please? I

Re: [fpc-pascal] DocView and FPC documentation release

2010-08-26 Thread Tomas Hajny
On Thu, August 26, 2010 17:55, Graeme Geldenhuys wrote: Hi Graeme, I am pleased to announce that fpGUI's DocView is available for download in a convenient binary executable from fpGUI's SourceForge project page. See the URL below. . . Thanks! Any idea why is your Win32 binary 100 kB

Re: [fpc-pascal] question about changing default ASCII table in the fpc 2.2.0 IDE

2010-07-05 Thread Tomas Hajny
, I'm not sure if I understand this question. Do you refer to an archive of this mailing list? If so, you can find a link on the FPC WWW pages (under Mailing lists). Hope this helps Tomas - Original Message - From: Tomas Hajny xhaj...@hajny.biz To: FPC-Pascal users discussions fpc

Re: [fpc-pascal] question about changing default ASCII table in the fpc 2.2.0 IDE

2010-06-24 Thread Tomas Hajny
the following kind suggestions of Tomas Hajny, unfortunately without success: 1. In a command shell I entered CHCP 437 and then ran the program 2. Modified the source code to include the Windows unit and added line setConsoleOutputCP(437);, compiled and then ran

Re: [fpc-pascal] Different default ASCII tablein fpc IDE with SP3 installed

2010-06-21 Thread Tomas Hajny
On Mon, June 21, 2010 10:19, Noel and Marie wrote: Hello, Recently SP3 for XP was installed on my PC. An fpc 2.2.0 program that previously displayed a square root symbol when instructed to write chr(251) now displays a superscript 1. In other words, the character set displayed in the IDE

Re: [fpc-pascal] Missing GetLastOSError() in DOS and MacOS

2010-06-10 Thread Tomas Hajny
On Thu, June 10, 2010 06:29, Bihar Anwar wrote: I don't see SysUtils.GetLastOSError() in DOS. Looking at a glance, I think it will be a trivial effort by just returning Dos.DosError variable content. Thanks for the notification, I'll have a look at it (creating a bug report to make sure it

Re: [fpc-pascal] Negative RTL Error Codes in Some Platforms

2010-06-10 Thread Tomas Hajny
On Thu, June 10, 2010 05:44, Bihar Anwar wrote: I look at the FPC RTL source codes and notice that in some OSes (e.g. OS/2, DOS) every RTL functions which call OS API functions will return the OS error code as a negative number. What is the reason behind this? I don't find such a convention in

Re: [fpc-pascal] Negative RTL Error Codes in Some Platforms

2010-06-10 Thread Tomas Hajny
On Thu, June 10, 2010 12:01, Bihar Anwar wrote: On June 10, 2010 1:46:39 PM, Tomas Hajny wrote: . . However, you shouldn't rely on the returned values too much anyway. No, I just rely on such a returned values in a very few cases. For example, In Windows/OS2/DOS, when FindNext() encounters

Re: [fpc-pascal] FPC bug or brain bug ?

2010-05-29 Thread Tomas Hajny
On Sat, May 29, 2010 12:56, Frank Peelo wrote: On 27/05/10 23:13, Jonas Maebe wrote: On 27 May 2010, at 23:31, Yann Bat wrote: The compiler always adds a VMT if an object has a constructor or destructor. The reason is that the VMT also contains the instance size, which is used by the

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

2010-05-21 Thread Tomas Hajny
On Fri, May 21, 2010 18:50, Matthias Klumpp wrote: Hi, I package a Freepascal project for Debian which uses a shared library. If I run the quality analysis on those packages, I get a warning, that the shared library has an executable stack. [1] Why does it have one, if it is not necessary?

Re: [fpc-pascal] timing again

2010-05-18 Thread Tomas Hajny
On Mon, May 17, 2010 22:25, spir ☣ wrote: Hello Denis, I posted a question about timing some time a go and got an answer; but let down for a while because other problems required my attention. So, I need a simple func to get the current time; mainly to benchmark various implementation

Re: [fpc-pascal] What is the lowest MS-DOS version supported by FPC?

2010-05-17 Thread Tomas Hajny
On Sat, May 15, 2010 22:48, Vinzent Höfler wrote: Bihar Anwar bihar_an...@rocketmail.com I've tried googling and searching FPC mailing list for information about this one, but I found nothing. I just found in http://www.delorie.com/djgpp/v2faq/faq3_1.html that DJGPP requires MS-DOS

Re: [fpc-pascal] FPC not mentioned on JSON website?

2010-05-14 Thread Tomas Hajny
On Fri, May 14, 2010 09:16, Graeme Geldenhuys wrote: Hi Graeme, Can somebody from the FPC team contact the JSON website [http://www.json.org/] so that they can list Free Pascal Compiler's fcl-json package under Delphi/Object Pascal section. No need to leave FPC out of the list -

Re: [fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-12 Thread Tomas Hajny
On Wed, May 12, 2010 07:37, Bihar Anwar wrote: Something like this one: https://libxpl.arsoft.homeip.net/browser/trunk/errormap/xplErrorMap.cpp?rev=70 I don't think we have platform independent (named) constants defined, but as you probably know, common error code _values_ are defined for our

Re: [fpc-pascal] standard unit description -- builtin funcs procs

2010-05-07 Thread Tomas Hajny
On Thu, May 6, 2010 13:03, Michael Van Canneyt wrote: On Thu, 6 May 2010, spir ☣ wrote: Hi, It seems, maybe, that most people using freepascal actually come from a different environment (esp Delphi) with all needed knowledge about (a dialect of) the language itself, here in fact Pascal

Re: [fpc-pascal] standard unit description -- builtin funcs procs

2010-05-07 Thread Tomas Hajny
On Fri, May 7, 2010 11:55, spir ☣ wrote: On Fri, 7 May 2010 11:09:42 +0200 (CEST) Tomas Hajny xhaj...@hajny.biz wrote: http://www.freepascal.org/docs-html/user/userch9.html . . BTW, you may also want to have a look at http://wiki.freepascal.org/Unit_categorization - it's incomplete

Re: [fpc-pascal] Unicode characters in source code

2010-04-21 Thread Tomas Hajny
On Wed, April 21, 2010 10:47, ik wrote: Hi, If I want to use Unicode characters in my source code, but without actually typing in the Unicode character - I rather want to define it similar to ASCII chars or Hex values: eg: Char(65)or 'test'+#65+'me' or similar to what hex

Re: [fpc-pascal] Unicode characters in source code

2010-04-21 Thread Tomas Hajny
On Wed, April 21, 2010 12:03, Graeme Geldenhuys wrote: Tomas Hajny het geskryf: What do you mean by messing with the -Fcutf8 parameter? If you include some character constants outside the us-ascii set, you should always tell the compiler how to evaluate them, because the evaluation depends

Re: [fpc-pascal] (no subject)

2010-04-12 Thread Tomas Hajny
On Mon, April 12, 2010 14:03, Graeme Geldenhuys wrote: On 12 April 2010 13:25, Bart bartjun...@gmail.com wrote: Commandline: fpc -dNOFORMSPLEASE myprogram.pp Not sure if this can be done from within FP IDE or Lazarus though. Yes they do... FP IDE: Option Compiler Conditional

Re: [fpc-pascal] Dosemu problems compiling

2010-04-05 Thread Tomas Hajny
On Mon, April 5, 2010 21:38, Jonas Maebe wrote: On 05 Apr 2010, at 21:21, John Coppens wrote: Anyone had a similar experience? As the DosEMU output says: ERROR: Please report the contents of ~/.dosemu/boot.log at http://sourceforge.net/tracker/?atid=457447group_id=49784func=browse; This

Re: [fpc-pascal] -Twin32 linker woes

2010-03-11 Thread Tomas Hajny
On Thu, March 11, 2010 12:28, Adriaan van Os wrote: Marco van de Voort wrote: In our previous episode, Adriaan van Os said: I am cross compiling with fpc svn trunk and -Twin32 on i386 Mac OS X to Win32. This works fine, except that {$linklib xxx.dll} says dlls are usually not $linklib'ed in

Re: [fpc-pascal] -Twin32 linker woes

2010-03-11 Thread Tomas Hajny
On Thu, March 11, 2010 12:50, Jonas Maebe wrote: On 11 Mar 2010, at 12:28, Adriaan van Os wrote: Marco van de Voort wrote: In our previous episode, Adriaan van Os said: I am cross compiling with fpc svn trunk and -Twin32 on i386 Mac OS X to Win32. This works fine, except that {$linklib

Re: Re[4]: [fpc-pascal] Re: Ido not understand UTF8 in Windows

2010-02-20 Thread Tomas Hajny
On Sat, February 20, 2010 01:15, JoshyFun wrote: Hello Tomas, Friday, February 19, 2010, 11:55:39 PM, you wrote: TH No, this can't work that way, otherwise output of any accented TH character in one of the Windows codepages would result in the same TH error. Tested the wrong return of

Re: Re[2]: [fpc-pascal] Re: Ido not understand UTF8 in Windows

2010-02-19 Thread Tomas Hajny
On 19 Feb 10, at 17:27, JoshyFun wrote: Friday, February 19, 2010, 3:22:15 AM, you wrote: LFDAM Ok, LFDAM The steps are : LFDAM 1) Change the Font Type at Lucida Console Font : LFDAM http://www.conoce3000.com/fig01.jpg LFDAM 2) Compile the program with fpc 2.4. : LFDAM 3) change to UTF8,

Re: Fw:Re: [fpc-pascal] I have some qustions about free pascal

2010-02-10 Thread Tomas Hajny
On Wed, February 10, 2010 11:51, åé wrote: -- Original -- From: Tomas Hajnyxhaj...@mbox.vol.cz; Date: Wed, Jan 13, 2010 01:06 AM To: FPC-Pascal users discussionsfpc-pascal@lists.freepascal.org; Cc: åé799945...@qq.com; Subject: Re: [fpc-pascal] I have some

Re: [fpc-pascal] I have some qustions about free pascal

2010-01-12 Thread Tomas Hajny
On Tue, January 12, 2010 15:12, Felipe Monteiro de Carvalho wrote: Hello 彘, Could you please subscribe to the list when asking questions and also please send plain text instead of html?   First, I want to use  some Turbo Pascal's Uint in Free Pascal (I learnt pascal in TP7.0)  but it

Re: [fpc-pascal] Missing error-Inforamtions

2009-12-15 Thread Tomas Hajny
On Tue, December 15, 2009 14:03, Michael Van Canneyt wrote: On Mon, 14 Dec 2009, Anfänger wrote: When compiling a newly entered program, my Free Pascal does no more indicate me, where there is a error and what kind of a error there is, like undefined Indiator or so. When I started with

Re: [fpc-pascal] fpcmake targets and $defines

2009-12-10 Thread Tomas Hajny
On Thu, December 10, 2009 01:03, Roland Schaefer wrote: Hi, do the standard targets set up by fpcmake come with any defines which allow conditional compilation depending on the target (like extra code to be compiled only when doing 'make debug', for example)? If not, can I get fpcmake to

Re: [fpc-pascal] How to solve Conversion between ordinals and pointers is not portable

2009-11-18 Thread Tomas Hajny
On Tue, November 17, 2009 10:48, Graeme Geldenhuys wrote: dmitry boyarintsev wrote: procedure XorBlock(var InData1, InData2; Size: longword); var b1 : PByte; b2 ; PByte; Changing those declarations to PByteArray type solves the compiler error in FPC. var b1: PByteArray; b2:

Re: [fpc-pascal] Access to RS232 ports with fpc

2009-11-03 Thread Tomas Hajny
On Tue, November 3, 2009 02:33, Holger Bruns wrote: Brad Campbell schrieb: Why not try attaching your test code that is failing so we can help you get it working? Done. My fault was the following declaration: var inbuffer: array of char; This is a better declaration: var inbuffer:

Re: [fpc-pascal] X, Y co-ordinate system under OS/2

2009-10-07 Thread Tomas Hajny
On Wed, October 7, 2009 16:31, Graeme Geldenhuys wrote: Hi, I'm porting an OS/2 application to Linux Windows. From what I can see in the code, it looks like co-ordinates (0,0) is in the bottom left corner of the screen. Whereas Windows and Linux, co-ordinates (0,0) is in the Top Left of

Re: [fpc-pascal] OS/2 INF help support

2009-09-09 Thread Tomas Hajny
On Wed, September 9, 2009 08:35, Graeme Geldenhuys wrote: Tomas Hajny het geskryf: interesting/better than CHM nowadays (except for the fact that I'm not aware of a CHM viewer for OS/2, which is an important downside for me Doesn't the 'lhelp' project, which is included with Lazarus IDE

Re: [fpc-pascal] OS/2 INF help support

2009-09-09 Thread Tomas Hajny
On Wed, September 9, 2009 09:24, Graeme Geldenhuys wrote: Tomas Hajny het geskryf: Probably clear from the previous discussion in the meantime, but anyway - neither LCL nor Lazarus itself have been ported to OS/2. Yup, sorry to hear that. I'll add OS/2 support as a feature request

Re: [fpc-pascal] The names of the various FPC documentation

2009-09-08 Thread Tomas Hajny
On Mon, September 7, 2009 13:39, David W Noon wrote: On Mon, 7 Sep 2009 12:12:42 +0200 (CEST), Michael Van Canneyt wrote about Re: [fpc-pascal] The names of the various FPC documentation: On Mon, 7 Sep 2009, Graeme Geldenhuys wrote: Such an old file-system limitation does not apply in newer

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 12:07, Michael Van Canneyt wrote: On Tue, 8 Sep 2009, Graeme Geldenhuys wrote: Hi, I know that the FP IDE (text mode) has support for reading OS/2 INF help files. This is pretty cool and it works with just about any INF file I threw at it. :-) I read my old

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 13:35, Marco van de Voort wrote: In our previous episode, Graeme Geldenhuys said: I'm been doing some reading on various help file format - to be used in my applications and possible Lazarus IDE. From my OS/2 2.1 and OS/2 Warp days I remember the INF help was very

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 15:07, Marco van de Voort wrote: In our previous episode, Graeme Geldenhuys said: Marco van de Voort het geskryf: . . PS #2: I found the source code for Sibyl IDE which contains a GUI help viewer (NewView) implemented in Object Pascal (I think it's Free Pascal

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 15:04, Graeme Geldenhuys wrote: Tomas Hajny het geskryf: I'm not aware of any IPF compiler apart from that one produced by IBM and Actually Lawrence Haynes, from the Open Watcom project re-engineered a clean-room implementation for the Open Watcom project

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 17:05, Marco van de Voort wrote: In our previous episode, Tomas Hajny said: (NewView) implemented in Object Pascal (I think it's Free Pascal Compiler compatible). Don't forget licensing issues. Also keep in mind that portable editors and generators for HTML

RE: [fpc-pascal] #26 as EOF marker?

2009-09-02 Thread Tomas Hajny
On Wed, September 2, 2009 17:20, Cox, Stuart TRAN:EX wrote: And the grandfather of the whole line, CP/M. Well, if we had CP/M target in FPC, sure... Tomas -Original Message- From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of

Re: [fpc-pascal] TItimerSpec

2009-08-14 Thread Tomas Hajny
On Fri, August 14, 2009 10:26, luca_mangane...@comune.trento.it wrote: Hi, I am trying to port a delphi source code to FPC on a 64 bit system. In the delphi code there's a TITimerSpec variable declaration. I found it in: mangane...@grass2:/usr/share/fpcsrc/2.2.2/packages$ fgrep -R -i

Re: [fpc-pascal] How trate with JPG

2009-05-24 Thread Tomas Hajny
On Sun, May 24, 2009 22:48, Mattias Gaertner wrote: On Sun, 24 May 2009 21:18:44 +0200 Diego Antonio Lucena Pumar diego.lucena.pu...@gmail.com wrote: Hi list: I have a question, is for a elementary program. What are the routines to manipulate with jpg image in

Re: [fpc-pascal] Using platform specific include files like FPC does

2009-05-21 Thread Tomas Hajny
On Thu, May 21, 2009 10:13, Marco van de Voort wrote: In our previous episode, Graeme Geldenhuys said: How do I use platform specific include files like FPC does, but in my own projects? FPC has actually several schemes. The most common two are: 1 {$ifdef'ed} inclusion of includefiles. 2

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

2009-05-18 Thread Tomas Hajny
On 18 May 09, at 22:10, Jonas Maebe wrote: On 18 May 2009, at 21:03, Michael Van Canneyt wrote: I checked the windows code, and FindClose explicitly checks that the searchrec record contains a valid handle (i.e. NOT INVALID_HANDLE_VALUE), so all platforms would behave the same.

Re: [fpc-pascal] Re: MacMode More Info

2009-05-14 Thread Tomas Hajny
On Tue, May 12, 2009 05:17, Pierre Paré wrote: The results of your email command are provided below. Attached is your original message. - Results: Invalid confirmation string. Note that confirmation strings expire approximately 3 days after the initial subscription request. If your

Re: [fpc-pascal] Where does Write(Ln) actually write to?

2009-05-13 Thread Tomas Hajny
On Wed, May 13, 2009 07:07, leledumbo wrote: It works... but only for the first call, after that IOResult gives 103. Does rtl closes stdout handle after every write or what? No, certainly not. As suggested yesterday, you need to implement some of the other Do_* functions, at least Do_Open,

Re: [fpc-pascal] Where does Write(Ln) actually write to?

2009-05-12 Thread Tomas Hajny
On Tue, May 12, 2009 05:38, leledumbo wrote: Jonas Maebe-2 wrote: It writes to whatever the text file variable called stdout in rtl/ inc/systemh.inc is assigned to. Standard I/O is indeed buffered, see the routines in rtl/inc/text.inc. The actual writing from the buffer to the associated

Re: [fpc-pascal] Greetings

2009-04-28 Thread Tomas Hajny
On Tue, April 28, 2009 01:30, Lou James wrote: I am new here too,I've been using free pascal since a year and a half ago.And I'm wondering what I can contribute? Well, contributions are always welcome, of course! There is a page in our Wiki regarding possible contributions

Re: [fpc-pascal] build case-sensetive issue

2009-04-24 Thread Tomas Hajny
On 25 Apr 09, at 1:53, dmitry boyarintsev wrote: Hi, i've been rebuilding svn version of fpc i386-linux. i'm building RTL using 'make all install INSTALL_PREFIX=mypath' mypath is located on a Fat32 disk (flash drive). All compiled unit files (.o, .ppu) are copied fine, expect for

[fpc-pascal] Re: MacMode More Info / which compatibility mode and object class type to use with Mac OS X, XCode and Carbon

2009-04-13 Thread Tomas Hajny
On Sat, April 11, 2009 23:16, Pierre Paré wrote: Thank for you answers and the links I did subscribe to the list but it seems I needed to complete the process with a confirmation. The FPC list and wiki servers are presently not responding ; my confirmation is bouncing back. Please, try

Re: [fpc-pascal] FPC : MacMode more info

2009-04-10 Thread Tomas Hajny
On Fri, April 10, 2009 15:01, Joost van der Sluis wrote: Op donderdag 09-04-2009 om 20:33 uur [tijdzone -0400], schreef Pierre Paré: I know Pascal well enough but have no prior knowledge on the Mac Dialect Then don't use it. The compiler-modes are there to make it easier for people to

Re: [fpc-pascal] CTRL-Break and asynchronous exec

2009-04-10 Thread Tomas Hajny
On Fri, April 10, 2009 18:10, Jürgen Hestermann wrote: Marco van de Voort schrieb: However in such cases it is easiest to look how FPC's biggest console app (the textmode IDE) does it. Thanks Marco for the quick answer. I tried to find where the IDE does the keyboard input but without

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Tomas Hajny
On Sun, April 5, 2009 16:03, Francisco Reyes wrote: Mehmet Erol Sanliturk writes: Unit and function names DebugPrint are the same . Pascal is case insensitive . Making their cases different does NOT make them different . Please make them different and retry . Thanks. That worked. It may

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Tomas Hajny
On Sun, April 5, 2009 17:23, Francisco Reyes wrote: Michael Van Canneyt writes: It may help newcomers like myself if this was mentioned on the ref document. Just double checked and it does not mention this. . . In particular it would be helpful if that note (ie name of fuction and unit

Re: [fpc-pascal] Generating code form xmi files

2009-04-02 Thread Tomas Hajny
On 2 Apr 09, at 20:27, Jonas Maebe wrote: On 02 Apr 2009, at 15:56, philippe.martin...@teleauto.org wrote: Do you know if some code allready exist to generate Pascal code form xmi files ? What do you mean by generating Pascal code from xml files? Pascal code describes an

Re: [fpc-pascal] Documentation and posts suggestions [LONG]

2009-03-15 Thread Tomas Hajny
On 15 Mar 09, at 17:50, Michael Van Canneyt wrote: On Sun, 15 Mar 2009, Francisco Reyes wrote: Whether coming from Delphi or a totally new to pascal user there are a couple of changes we could made to the documentation to make it friendlier and to posts we make on the list. I was

Re: Re[2]: [fpc-pascal] Access violation during compilation and linking

2009-03-12 Thread Tomas Hajny
On Thu, March 12, 2009 12:17, Roland Turcan wrote: 12.3.2009 10:09 - Jonas Maebe jonas.ma...@elis.ugent.be JM Roland Turcan wrote on do, 12 mrt 2009: It often happens to me, that during compilation FPC raises an exception and often is enough just to clean up directories where are *.o and

Re: Re[2]: [fpc-pascal] Access violation during compilation and linking

2009-03-12 Thread Tomas Hajny
On Thu, March 12, 2009 12:51, Jonas Maebe wrote: Roland Turcan wrote on do, 12 mrt 2009: . . I have longer time a difficulty to solve this message when I try to build fpc with sudo make clean all: Makefile:2279: *** No libgdb.a found, supply NOGDB=1 to disable debugger support. of

Re: [fpc-pascal] TProcess.CommandLine 255 fails

2009-01-03 Thread Tomas Hajny
On 2 Jan 09, at 22:15, T.Guilleminot wrote: Hi, I use TProcess.CommandLine very often and I discovered that it seems limited to 255 chars. Does anyone know how to workaround this limitation ? Which target/operating system? I assume that your code using TProcess is compiled with {$H+} or

Re: [fpc-pascal] Re: Hello World for Darwin ?

2008-12-15 Thread Tomas Hajny
On Sun, December 14, 2008 23:32, Skybuck Flying wrote: That didn't go well. Couldn't install package, the installer said. RTF can't be opened. So much for that. See information about cross-compilation in FPC Wiki (http://wiki.freepascal.org/Cross_compiling) including the referenced

Re: [fpc-pascal] Options for enabling output buffering

2008-12-13 Thread Tomas Hajny
On 12 Dec 08, at 22:12, leledumbo wrote: . . OK, for a real world apps that's true. I guess I still have to write those things myself. Btw, is there any difference between code in an initialization section of a unit with the one at the beginning of a program? The only difference is that

Re: [fpc-pascal] RTL function list?

2008-12-09 Thread Tomas Hajny
On Tue, December 9, 2008 22:25, Francisco Reyes wrote: Vincent Snijders writes: e.g. http://lazarus-ccr.sourceforge.net/fpcdoc/rtl/index.html I was looking for something like.. AnsiCompareStr Sysutils DaySpan dateutils I have been using the PDF and searching for a function as

Re: [fpc-pascal] debugging version of RTL

2008-11-10 Thread Tomas Hajny
On Mon, November 10, 2008 00:53, Marc Santhoff wrote: Am Sonntag, den 09.11.2008, 23:46 + schrieb Henry Vermaak: 2008/11/9 Marc Santhoff [EMAIL PROTECTED]: Hi, how can I build the RTL and other packages containing debug symbols? Is it sufficient to do sth. like: cd rtl edit

Re: [fpc-pascal] cross os symbolic link handling

2008-11-01 Thread Tomas Hajny
On 31 Oct 08, at 17:49, Marc Santhoff wrote: Hi, is there any function or set of functions for handling symbolic links inside the file system at an os independant level in fpcs libraries? Unix-like systems have soft symlinks (Linux, FreeBSD), Windows has .lnk files upt to XP and AFAIR

Re: [fpc-pascal] stdout refuses to be redirected

2008-10-09 Thread Tomas Hajny
On Thu, October 9, 2008 11:43, Arjan van Dijk wrote: You can stop using crt, then you don't need to change your write instuctions. And how about my calls to READKEY and KEYPRESSED? Would unit WINCRT bring a solution? Or should I reconsider the use of these two statements anyhow? You can use

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Tomas Hajny
On Mon, October 6, 2008 05:33, Antal wrote: It is a plain text file, each row is separated with CRLF (#13#10), each cell separated with tab (#9) errm, surely that should be a comma, not a tab! The Tab as separator is just a good way to avoid using the double quote :P It just comes from

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Tomas Hajny
On 6 Oct 08, at 18:00, Frank Peelo wrote: Marco van de Voort wrote: In our previous episode, Frank Peelo said: An additional issue with delimiters in this case is the fact, that C in CSV may not always be a comma (or that spreadsheet applications may expect different characters depending

Re: [fpc-pascal] Exe size

2008-09-08 Thread Tomas Hajny
On 8 Sep 08, at 9:34, Paul wrote: Hi Paul, . . I know KOL uses api calls (used it years ago), but I prefer to create my forms, buttons etc. directly with api calls myself to keep the exe size as small as possible. My problem is: how should I write api call's for a different target

Re: [fpc-pascal] Exe size

2008-09-07 Thread Tomas Hajny
On 6 Sep 08, at 11:08, Paul wrote: Hi Paul, Similarly to Felipe, I don't understand why this should be a bad news for you or why this should mean that Visual Studio gave you something not available with FPC (or what that something was in that case)... It looks as if I either don't

Re: [fpc-pascal] Exe size

2008-09-05 Thread Tomas Hajny
On Fri, September 5, 2008 08:51, Paul wrote: Hi Paul, If you use a (cross-)compiler for ARM target processor, the generated binary will be indeed an ARM binary, of course (ready to run on an ARM under the selected target OS - WinCE in your case). If targetting WinCE OS, you can only use

Re: [fpc-pascal] Exe size

2008-09-04 Thread Tomas Hajny
On 4 Sep 08, at 21:03, Paul wrote: If I understand correcly, it's the lcl that adds a huge part to the exe. Since I only use 1 small form, I could create it with api calls. But FPC for WinCE uses a crosscompiler, how do I have to implement this ? Are Windows api calls translated to ARM-calls

Re: [fpc-pascal] FPC_HAS_FEATURE_TEXTIO - Strange behaviour!

2008-08-13 Thread Tomas Hajny
On 13 Aug 08, at 11:47, SirStorm25 wrote: Marco van de Voort wrote: In our previous episode, SirStorm25 said: Im trying to develop reading capabilities for an OS im helping to develop. When enabling the FPC_HAS_FEATURE_TEXTIO from the RTL, I get a few errors involving the file:

Re: [fpc-pascal] Flush(StdOut) doesn't mean Flush(Output)

2008-07-08 Thread Tomas Hajny
On Mon, July 7, 2008 12:11, leledumbo wrote: So, what's the purpose of having them? That's the part I could not answer myself and asked others who could remember the reasons for introducing it. There may have been technical reasons like support for absolute keyword (which could support a real

Re: [fpc-pascal] Flush(StdOut) doesn't mean Flush(Output)

2008-07-07 Thread Tomas Hajny
On Mon, July 7, 2008 09:55, leledumbo wrote: In the rtl documentation, StdOut is defined as an alias for Output. Therefore, (I think) flushing one will also flush the other. But the truth, it's not. In fact, only Flush(Output) will really flush standard output. So, what will Flush(StdOut)

Re: [fpc-pascal] Complying with LGPL using FPC

2008-07-04 Thread Tomas Hajny
On Fri, July 4, 2008 18:15, Vladimir Zhirov wrote: Hi, Would you please help me to find out the steps I should follow to comply with LGPL if my application is built using FPC and uses pascal source code of LGPL'ed library? Section 4 of LGPL requires to d) Do one of the following: 0)

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Tomas Hajny
On 29 Jun 08, at 20:48, Felipe Monteiro de Carvalho wrote: On Sun, Jun 29, 2008 at 8:06 PM, Graeme Geldenhuys [EMAIL PROTECTED] wrote: I did a test and sent a screenshot of the results. I don't know what's the limit of attachments in this mailing list. So let me know if the attachment

RE: [fpc-pascal] Shared library with resources which contain bitmaps on Linux -- second try

2008-06-25 Thread Tomas Hajny
On Wed, June 25, 2008 13:07, Michael Van Canneyt wrote: On Tue, 24 Jun 2008, Tom Carly wrote: With version 2.3.1, you can try the new support for resources, and it should work out of the box. How can you obtain 2.3.1? I cannot find it in the repository... You can get 2.3.1 only from

<    1   2   3   4   5   6   7   8   >