Re: [fpc-pascal]ProceList/Quote Program (ncurses)

2004-07-12 Thread James Mills
On Mon, Jul 12, 2004 at 09:51:18AM +0200, Marco van de Voort wrote: > > Am I better off writing my own classes using the ncurses library ? > > IMHO only if you make something small. TV allows the most rich textmode > apps I know. Problem is that it might require some debugging here and there, > bu

Re: [fpc-pascal]ProceList/Quote Program (ncurses)

2004-07-12 Thread James Mills
On Mon, Jul 12, 2004 at 09:11:57AM +0200, Marco van de Voort wrote: > Libraries: Turbo Vision. (see the textmode IDE). It only uses the terminfo > part of ncurses though, which improves look and feel, but decreases terminal > independance. Am I better off writing my own classes using the ncurses l

[fpc-pascal]ProceList/Quote Program (ncurses)

2004-07-11 Thread James Mills
Hi, I'm intending upon writing a program to help with developing quotes for computer systems with the price list given in CSV then converted to a RDBMS of some sort (eg: sqlite). My intention is to build this program using the ncurses library and develop a set of interfaces that are easy to use.

Re: [fpc-pascal]FPC Version 1.9.4 released.

2004-06-02 Thread James Mills
On Wed, Jun 02, 2004 at 03:40:38PM +0200, Michael Van Canneyt wrote: > > And PIC (Position Independant Code) generation is working too ? > > No. See the roadmap: scheduled for 1.9.6 Excuse me ignorance. I don't beleive I know what PIC is... What is PIC ? cheers James -- -ShortCircuit Services

[fpc-pascal]Developers needed (interested?)

2004-03-14 Thread James Mills
ed at http://wiki.shortcircuit.net.au/SAF/ The current name is temporary only and may change... If you would like to help out and join the project team, please email either: James Mills (myself) -> [EMAIL PROTECTED] or Jeremy Whyatt -> [EMAIL PROTECTED] Thank you for taking an interest :) c

Re: [fpc-pascal]quick question

2004-03-04 Thread James Mills
On Thu, Mar 04, 2004 at 11:39:46PM -0500, r.w.h wrote: > begin > if exists ('bot.log') > then begin > assign(ftb,'bot.log'); > append(ftb); > writeln(ftb,'bot log created'); // find away to enter time , date > close(ftb); > end > else > begin > assign(ftb,'bot.log'); > reset(ftb); > writeln(ftb,'th

Re: [fpc-pascal]How to daemonize a program?

2004-01-11 Thread James Mills
On Sun, Jan 11, 2004 at 07:06:35PM -0500, Paul Aviles wrote: > Hello all, > > I know I can start a program with & at the end and will run in the > background. Is there a way to do this without the & symbol in Linux? have a look at the daemon.pp example in the examples. cheers James

Re: [fpc-pascal]Info about the compiler

2004-01-10 Thread James Mills
On Sat, Jan 10, 2004 at 01:32:18PM +0100, Marco van de Voort wrote: > > Freepascal compiler can compile for 32 bits real mode?? > > Yes I was just thinking about FPC being used to write a small kernel again, I know it's been talked about before in threads in the past but the whole process of

Re: [fpc-pascal]replacing BEGIN and END?

2004-01-08 Thread James Mills
On Wed, Jan 07, 2004 at 09:41:35PM -0800, Laurent Cocea wrote: > Hi all- > > Do you guys think there might be a way, either at this time or in the > near future, to replace `BEGIN' with `{' and `END' with `}' in FPC code, > and still be able to successfully compile it? Thanks. Definately not! Thi

Re: [fpc-pascal]gpm library compiled by default ?

2003-10-24 Thread James Mills
On Fri, Oct 24, 2003 at 07:59:56AM +0200, Michalis Kamburelis wrote: > From your answer I understand that you are recompiling Keyboard unit > with -dNOMOUSE, which is pointless. I wrote (maybe it was not clear > enough, sorry) that you should recompile _Mouse_ unit (not Keyboard unit). > > If th

Re: [fpc-pascal]gpm library compiled by default ?

2003-10-23 Thread James Mills
On Thu, Oct 23, 2003 at 09:16:19AM +0200, Marco van de Voort wrote: > > On Wed, Oct 22, 2003 at 10:53:51PM +0200, Michalis Kamburelis wrote: > > > Maybe you're using the Keyboard unit ? This unit uses Mouse in it's > > > implementation, and by default unit Mouse uses Gpm unit (that links to > > > l

Re: [fpc-pascal]gpm library compiled by default ?

2003-10-22 Thread James Mills
On Wed, Oct 22, 2003 at 10:53:51PM +0200, Michalis Kamburelis wrote: > Maybe you're using the Keyboard unit ? This unit uses Mouse in it's > implementation, and by default unit Mouse uses Gpm unit (that links to > libgpm). If you don't want to depend on libgpm you can recompile Mouse > with symbol

[fpc-pascal]gpm library compiled by default ?

2003-10-22 Thread James Mills
Hi, I noticed the other day that one of my FPC programs which does not in anyway shape or form use the gpm or any mouse libraries actually requires the gpm library to be installed. It seems the fpc 1.0.10 is compiling programs and requiring libgpm to be installed. Why is this ? cheers James --

Re: [fpc-pascal]GTK: multiline label

2003-10-09 Thread James Mills
On Thu, Oct 09, 2003 at 06:59:41AM -0700, Gene Buckle wrote: > > Hello > > > > How ist possible to make initialize in fpc a multiline label. Something like > > > > Lbl := gtk_label_new('Line1 \n Line2'); > > > > I guess but with what do I have to replace the "\n" ? > > > > Thank's for any help

Re: [fpc-pascal]Cross-Compiling Debian/Linux -> FreeBSD

2003-10-08 Thread James Mills
On Wed, Oct 08, 2003 at 11:02:45AM +0200, Marco van de Voort wrote: > > > Is there an easy way of cross-compiling other than what I"m currently > > doing (using a shell account), to cross-compile from Debian/Linux to > > FreeBSD ? > > There are certainly ways, and you are in luck, I just did this

[fpc-pascal]Cross-Compiling Debian/Linux -> FreeBSD

2003-10-07 Thread James Mills
Hi, Is there an easy way of cross-compiling other than what I"m currently doing (using a shell account), to cross-compile from Debian/Linux to FreeBSD ? If there is, I will need a step-by-step instruction, as I've never done it before without the need for a different machine. cheers James -- -

Re: [fpc-pascal]Fast answers in the mailing list

2003-10-02 Thread James Mills
On Thu, Oct 02, 2003 at 07:50:15PM +0800, Andy Sy wrote: > Woah... those answers sure are coming in fast! Am I on > IRC? :-) When you have a good email client like 'mutt' and are online a lot of the day, you can expect replies in (almost) real-time :) hehe cheers James -- - -Zero Defect Softwar

Re: [fpc-pascal]CR / CRLF problem when redirecting to file

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 05:57:57PM +0200, Jonas Maebe wrote: > > On zondag, sep 14, 2003, at 17:48 Europe/Brussels, John Coppens wrote: > > >In Linux, when redirecting FPC output to a file, I found that after 25 > >lines, CR characters are being added, as if in DOS: > > > >program TestCR; > >uses

Re: [fpc-pascal]CR / CRLF problem when redirecting to file

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 12:48:28PM -0300, John Coppens wrote: > Hello all, > > In Linux, when redirecting FPC output to a file, I found that after 25 > lines, CR characters are being added, as if in DOS: > > program TestCR; > uses > CRT; > var > i: integer; > begin > for i := 1 to 50 do >

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 05:36:25PM +0200, [EMAIL PROTECTED] wrote: > > > On Mon, 15 Sep 2003, James Mills wrote: > > > On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > > >

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > It hands when you POST data with two angled bracked, eg: "> >" > > I have not tried using GET, I don't think it would be appropiate >

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-13 Thread James Mills
On Sat, Sep 13, 2003 at 01:50:29AM -0700, Alan Mead wrote: > I don't know anything about the FP cgi routines, but I program CGI a > lot and the handling of characters like '>' could be tricky. Does it > hang on other strings containing an angle bracket, or just this > particular one? And you say

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-12 Thread James Mills
On Fri, Sep 12, 2003 at 06:34:16PM +0200, [EMAIL PROTECTED] wrote: > > > On Sat, 13 Sep 2003, James Mills wrote: > > > Hi all again, > > > > I'm reposting this question as I would like to find some answers to this > > problem, or writing this part

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-12 Thread James Mills
On Fri, Sep 12, 2003 at 11:09:28AM -0700, Alan Mead wrote: > Is this something demonstrable in a small program? I could rewrite another version of the cgi app with a simple html to post data containing "> >". I'll try and do that tonight and post it. cheers James -- - -Zero Defect Software Engin

[fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-12 Thread James Mills
Hi all again, I'm reposting this question as I would like to find some answers to this problem, or writing this particular kind of CGI App will be impossible. (Forum). I think there might be a possible bug in both ezcgi.pp and cgiapp.pp If you try and post a piece of form data: ie: > > it wil

Re: [fpc-pascal]EOF function

2003-09-11 Thread James Mills
On Thu, Sep 11, 2003 at 03:01:39PM +0200, Maciej ?aszcz wrote: > On Thu, 11 Sep 2003, James Mills wrote: > > > Hi, > > > > The following (attached) is a programming problem I've implemented. > > Now I know the way I've done the EOF test is not correct,

[fpc-pascal]EOF function

2003-09-11 Thread James Mills
Hi, The following (attached) is a programming problem I've implemented. Now I know the way I've done the EOF test is not correct, otherwise it would not crash with a runtime error of 106. Could someone show me the correct way of reading from stdin until there is no more input ? cheers James --

Re: [fpc-pascal]make files

2003-09-08 Thread James Mills
On Sun, Sep 07, 2003 at 04:30:39PM -0400, Frank W McCormick wrote: > Hi all > > Can someone give me a simple example of a makefile suitable for just > simple compiling of one file ? I am so used to running FPC > from the command line that make is foreign to me. Catch! cheers James -- - -Zero

[fpc-pascal]cgiapp.pp and ezcgi.pp possible bug

2003-09-07 Thread James Mills
Hi, I think there might be a possible bug in both ezcgi.pp and cgiapp.pp If you try and post a piece of form data: ie: > > it will hang in an infinite loop. I'm not sure where the problem is, debugging cgi apps is hard ;) cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -Y

[fpc-pascal]SDL Library

2003-09-07 Thread James Mills
Hi, What's the reccomended SDL library to use with FPC ? With FPC 1.0.6 I used to use SDL4Freepascal-1.2.0.0.tar.gz by Daniel F Moisset ... Are there any further updates to SDL for use with FPC ? I found Daniel's port of the SDL library very easy to use. cheers James -- - -Zero Defect Softwar

Re: [fpc-pascal]Read from command line

2003-09-07 Thread James Mills
On Sun, Sep 07, 2003 at 09:43:32PM +1000, DONALD PEDDER wrote: >Don't know if it's different in Linux, but in the DOS version at least > you can use paramstr(1), paramstr(2), etc. > > if (paramstr(1)='test') then writenln('you passed the parameter passing > test') It isn't any different on Li

Re: [fpc-pascal]thread

2003-09-02 Thread James Mills
On Tue, Sep 02, 2003 at 09:56:18AM +0200, Chemistry.rd wrote: > From: Dancso Andras <[EMAIL PROTECTED]> > Subject: thread > > Question: How can I start a new thread from FreePascal under Win32? I think it might be platform independent. If that's the case there's a nice example in the FCL source.

Re: [fpc-pascal]ICS for FPC 1.1

2003-08-28 Thread James Mills
On Thu, Aug 28, 2003 at 04:09:12PM +0200, Michael Van Canneyt wrote: > Synapse. It's on the contributed units list, I think. If I remember correctly, this is what you guys had a huge mailing list conversation about :P God knows what about though I couldn't follow it after 2 follow ups :( cheers Ja

Re: [fpc-pascal]Lazarus

2003-08-28 Thread James Mills
On Thu, Aug 28, 2003 at 04:08:44PM +0200, Marco van de Voort wrote: > > The www.lazarus.freepascal.org has been down for a while, does anyone know > > what exactly what happened? > > Some hacker activity, and the owner wanted to reinstall to make sure that > they were entirely gone. That's so pat

Re: [fpc-pascal]ICS for FPC 1.1

2003-08-28 Thread James Mills
On Thu, Aug 28, 2003 at 01:51:41PM +0200, Marco van de Voort wrote: > > After years of playing to get ICS running under FPC/win32, the 1.1.x > compiler is finally getting so stable that the only remaining differences > are minor ones. So minor, that the author of ICS has decided to merge them > in

Re: [fpc-pascal]TStringList.indexOf (case-sensitivity)

2003-08-28 Thread James Mills
On Thu, Aug 28, 2003 at 09:31:13AM +0200, Michael Van Canneyt wrote: > > > In D7, yes. In FPC: Not unless you send me a patch :-) Perhaps I will. It's rather a waste of code to create an entire desandant :) cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two t

Re: [fpc-pascal]TStringList.indexOf (case-sensitivity)

2003-08-28 Thread James Mills
On Wed, Aug 27, 2003 at 03:03:31PM +0200, Michael Van Canneyt wrote: > > > On Wed, 27 Aug 2003, James Mills wrote: > > > On Wed, Aug 27, 2003 at 09:39:10AM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Wed, 27 Aug 2003, James Mill

Re: [fpc-pascal]TStringList.indexOf (case-sensitivity)

2003-08-27 Thread James Mills
On Wed, Aug 27, 2003 at 09:39:10AM +0200, Michael Van Canneyt wrote: > > > On Wed, 27 Aug 2003, James Mills wrote: > > > Hi, > > > > Is TStringList.indexOf case sensitive or insensitive ? > > TStrings.indexOf is case insensitive, but TStringList.indexO

[fpc-pascal]TStringList.indexOf (case-sensitivity)

2003-08-26 Thread James Mills
Hi, Is TStringList.indexOf case sensitive or insensitive ? TStrings.indexOf is case insensitive, but TStringList.indexOf overrides the TStrings.indexOf implementation accoriding to the documentation. cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-

Re: [fpc-pascal]Debugging FPC

2003-08-23 Thread James Mills
On Sat, Aug 23, 2003 at 05:39:49PM +0200, Peter Vreman wrote: > You can leave the debian fpc packages installed and install an own > compiled fpc version in /usr/local or in your home dir. (hides from the maintainter), perhaps I should maintain the debian package :) James (hides!) -- - -Zero Def

Re: [fpc-pascal]Debugging FPC

2003-08-23 Thread James Mills
On Fri, Aug 22, 2003 at 04:51:27PM +0200, [EMAIL PROTECTED] wrote: > Of course, I forgot that the RTL we distribute doesn't contain symbol > information. Go to the rtl/linux sources directory (I don't know offhand > where the sources are installed under Linux), type "make OPT="-g", and > then compi

Re: [fpc-pascal]Debugging FPC

2003-08-22 Thread James Mills
On Fri, Aug 22, 2003 at 03:14:20PM +0200, Peter Vreman wrote: > You can use the gdb available in Debian. It has already the pascal support > included. (gdb) b HANDLEERRORFRAME Function "HANDLEERRORFRAME" not defined. It doesn't define whatever HANDLEERRORFRAME is though, so what Jonas said won't w

Re: [fpc-pascal]Debugging FPC

2003-08-22 Thread James Mills
On Fri, Aug 22, 2003 at 10:35:15AM +0200, [EMAIL PROTECTED] wrote: > > > gdbpas is included with fpc (all versions). gdb = GNU DeBugger. The "pas" > stands for "with pascal extensions". I do not seem to have this anywhere on my system. Of course I have gdb. Can I get it somewhere ? (Perhaps the D

Re: [fpc-pascal]Debugging FPC

2003-08-22 Thread James Mills
On Fri, Aug 22, 2003 at 09:30:49AM +0200, [EMAIL PROTECTED] wrote: > > > On Fri, 22 Aug 2003, James Mills wrote: > > > > An unhandled exception occurred at 0x080A33B1 : > > > List index exceeds bounds (-1) > > > 0x080A33B1 > > > > Also anyone

Re: [fpc-pascal]Debugging FPC

2003-08-22 Thread James Mills
On Fri, Aug 22, 2003 at 11:08:14AM +1000, James Mills wrote: > I think perhaps I need to repost my question as I saw the mailing list > server go down yesterday... > > Hi, > > 1) Is there anyway of finding out the cooresponding source line when a > program crashes and only

Re: [fpc-pascal]RE: Debugging FPC

2003-08-22 Thread James Mills
On Thu, Aug 21, 2003 at 09:44:30PM -0700, Jeff Pohlmeyer wrote: > > With compile modes: -gg -gl > > Aren't line info and tracebacks suppose to be shown, > > the above example does not show these. > > > I think the problem comes with using exceptions. Normally, if a > run-time error occurs, the d

[fpc-pascal]Debugging FPC

2003-08-21 Thread James Mills
I think perhaps I need to repost my question as I saw the mailing list server go down yesterday... Hi, 1) Is there anyway of finding out the cooresponding source line when a program crashes and only outputs the following: An unhandled exception occurred at 0x080A33B1 : List index exceeds bounds

[fpc-pascal]Debuggin

2003-08-20 Thread James Mills
Hi, 1) Is there anyway of finding out the cooresponding source line when a program crashes and only outputs the following: An unhandled exception occurred at 0x080A33B1 : List index exceeds bounds (-1) 0x080A33B1 2) With compile modes: -gg -gl Aren't line info and tracebacks suppose to be s

Re: [fpc-pascal]QWord vs. function Abs

2003-08-20 Thread James Mills
On Wed, Aug 20, 2003 at 02:34:23PM +0200, [EMAIL PROTECTED] wrote: > Hallo, > i'm newbie and maybe making something wrong. > > Small example for go32v2: > > var q1,q2:qword; > begin > q1:=10; > q2:=20; > writeln(Abs(q1-q2)); > end. I get runtime 215 with FPC 1.0.6 ... This probably means

Re: [fpc-pascal]SQLITE with FPC

2003-08-15 Thread James Mills
On Tue, Aug 12, 2003 at 09:12:37AM +0200, Michael Van Canneyt wrote: > > > On Tue, 12 Aug 2003, James Mills wrote: > > > On Wed, Aug 06, 2003 at 07:18:33PM +0200, Jilani Khaldi wrote: > > > Hi All, > > > could someone point me where to find the sqlite.pas

Re: [fpc-pascal]SQLITE with FPC

2003-08-14 Thread James Mills
On Wed, Aug 06, 2003 at 07:18:33PM +0200, Jilani Khaldi wrote: > Hi All, > could someone point me where to find the sqlite.pas for FP to use with > Linux Linux? > Any hint or examples is welcome. > jilani Let me know if you find a TDataSet class that'll work with FPC and Sqlite on Linux. Cause I

Re: [fpc-pascal]SQLITE with FPC

2003-08-14 Thread James Mills
On Wed, Aug 06, 2003 at 07:18:33PM +0200, Jilani Khaldi wrote: > Hi All, > could someone point me where to find the sqlite.pas for FP to use with > Linux Linux? Excellent someone else that wishes to use sqlite with FPC :) I'll attach all relevant sources... However a TDataset class still needs to

Re: [fpc-pascal]what Programming Environment : Editor & Debugger

2003-08-14 Thread James Mills
On Thu, Aug 07, 2003 at 12:32:59AM +0200, Stefan Becker wrote: > dear Pascal'ers, > > I've just searched the net and freepascal.org in the hope of finding some > info on what and how to set up a working environment with linux. > > So far I've done all my editing and debuging on a DOS machine with

Re: [fpc-pascal]Error 216 with SDL

2003-08-04 Thread James Mills
On Mon, Aug 04, 2003 at 09:44:13PM +0200, Jonas Maebe wrote: > > On maandag, aug 4, 2003, at 21:12 Europe/Brussels, Holger Peters wrote: > > >I used SDL4FreePascal under Windows with FreePascal 1.0.6 and it > >worked fine. Now, I use RedHat 9.0 with FreePascal 1.0.10 and > >SDL4FreePascal doesn

Re: [fpc-pascal]Error 216 with SDL

2003-08-04 Thread James Mills
On Mon, Aug 04, 2003 at 09:12:37PM +0200, Holger Peters wrote: > Hi, > > I used SDL4FreePascal under Windows with FreePascal 1.0.6 and it worked > fine. Now, I use RedHat 9.0 with FreePascal 1.0.10 and SDL4FreePascal > doesn't work. > When I compile the demos, I get the runtime error 216 at the

Re: [fpc-pascal]Direct writes to console buffer

2003-08-03 Thread James Mills
On Sun, Aug 03, 2003 at 07:26:35AM -0700, Rich Pasco wrote: > James Mills wrote: > > > In addition, I suggest using SDL which will work for windows. SDL is > > probably a much better approach than trying to directly access video > > RAM. And to makes things easier for yo

Re: [fpc-pascal]Direct writes to console buffer

2003-08-02 Thread James Mills
On Sun, Aug 03, 2003 at 02:52:57AM -0400, L D Blake wrote: > In reply to your message of August 3, 2003 > > > I'm trying to port some old Turbo Pascal programs to Windows 32-bit > > console utilities. They write directly to the screen buffer, which in > > the DOS world an array of Word starting a

Re: [fpc-pascal]Cross-Compiling

2003-08-02 Thread James Mills
On Fri, Aug 01, 2003 at 10:45:00PM +0300, Nikolay Nikolov wrote: > James Mills wrote: > > >How are you guys goins with crosscompiling ? > >I'd like to be able to cross compile from Debian/Linux to various other > >platforms... Or have you been crosscompiling the o

[fpc-pascal]Cross-Compiling

2003-08-01 Thread James Mills
Hi, How are you guys goins with crosscompiling ? I'd like to be able to cross compile from Debian/Linux to various other platforms... Or have you been crosscompiling the other way ? Anyone attempted to write a howto/tutorial yet ? cheers James -- - -Zero Defect Software Engineers Group - ZDSEG

Re: [fpc-pascal]runtime 201 with swapword function

2003-07-25 Thread James Mills
On Fri, Jul 25, 2003 at 04:36:39PM +0100, Matt Emson wrote: > > > Doesn't system contain a routine called 'swap' that does this exact thing?? > > This program would seem to work in both Delphi and FPC1.1: > > program test; > {$APPTYPE CONSOLE} > > uses > sysutils; > > var > i, j: word; >

Re: [fpc-pascal]How to use Linux libraries?

2003-07-25 Thread James Mills
On Fri, Jul 25, 2003 at 06:18:48PM +0200, Rainer Hantsch wrote: > Hello, James! > > On Sat, 26 Jul 2003, James Mills wrote: > | I could write you up a set of such procedures or classes to do this, > | however I'm starting back at uni. New semester :) > > Good su

Re: [fpc-pascal]runtime 201 with swapword function

2003-07-25 Thread James Mills
On Fri, Jul 25, 2003 at 04:30:35PM +0200, Florian Klaempfl wrote: > James Mills wrote: > >On Fri, Jul 25, 2003 at 04:21:36PM +0200, Jonas Maebe wrote: > > > >>On vrijdag, jul 25, 2003, at 16:22 Europe/Brussels, James Mills wrote: > >> > >> > >&g

Re: [fpc-pascal]runtime 201 with swapword function

2003-07-25 Thread James Mills
On Fri, Jul 25, 2003 at 04:30:24PM +0200, Jonas Maebe wrote: > > On vrijdag, jul 25, 2003, at 16:32 Europe/Brussels, James Mills wrote: > > >>In Pascal, all calculations are performed using the base type (which > >>is > >>longint in FPC), so if w >

Re: [fpc-pascal]runtime 201 with swapword function

2003-07-25 Thread James Mills
On Fri, Jul 25, 2003 at 04:21:36PM +0200, Jonas Maebe wrote: > > On vrijdag, jul 25, 2003, at 16:22 Europe/Brussels, James Mills wrote: > > >Why does the following result in a runtime error ? > > > >program example; > > > >const > > THE_PORT =

Re: [fpc-pascal]How to use Linux libraries?

2003-07-25 Thread James Mills
On Fri, Jul 25, 2003 at 04:04:47PM +0200, Rainer Hantsch wrote: > On Fri, 25 Jul 2003, Michael Van Canneyt wrote: > | It uses some windows bitmap structures, and cannot be compiled on Linux as > | is. For the rest it compiles 100% fine. You could cut&paste the needed > | definitions from the window

[fpc-pascal]runtime 201 with swapword function

2003-07-25 Thread James Mills
Hi, Why does the following result in a runtime error ? program example; const THE_PORT = ; function swapWord(w: Word): Word; begin swapWord := (w SHL 8) OR (w SHR 8); end; var port: Word; begin port := swapWord(THE_PORT) end. $ ./swapword Runtime error 2

Re: [fpc-pascal]XChat plugins using FPC

2003-07-25 Thread James Mills
On Thu, Jul 24, 2003 at 11:17:53AM +0200, Michael Van Canneyt wrote: > > > On Thu, 24 Jul 2003, James Mills wrote: > > > On Wed, Jul 23, 2003 at 08:50:35AM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Wed, 23 Jul 2003, James Mills wrote

Re: [fpc-pascal]A suggestion.

2003-07-25 Thread James Mills
_ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]XChat plugins using FPC

2003-07-25 Thread James Mills
I'm getting close though I think I'll end up writing a unit interface to the c functions though. I don't want to end up writing plugins and having to remember every bloody xchat interface command :) do you ? cheers James > > Holger > > > James Mills schrieb: >

Re: [fpc-pascal]XChat plugins using FPC

2003-07-24 Thread James Mills
On Wed, Jul 23, 2003 at 08:50:35AM +0200, Michael Van Canneyt wrote: > > > On Wed, 23 Jul 2003, James Mills wrote: > > > On Wed, Jul 23, 2003 at 03:28:55AM +0200, Marco van de Voort wrote: > > > > I can successully compile and test the plugin source listed at

Re: [fpc-pascal]XChat plugins using FPC

2003-07-23 Thread James Mills
On Wed, Jul 23, 2003 at 08:51:10AM +0200, Michael Van Canneyt wrote: > > > On Wed, 23 Jul 2003, James Mills wrote: > > > On Wed, Jul 23, 2003 at 03:28:55AM +0200, Marco van de Voort wrote: > > > > I can successully compile and test the plugin source listed at

Re: [fpc-pascal]XChat plugins using FPC

2003-07-23 Thread James Mills
On Wed, Jul 23, 2003 at 08:50:35AM +0200, Michael Van Canneyt wrote: > > > On Wed, 23 Jul 2003, James Mills wrote: > > > On Wed, Jul 23, 2003 at 03:28:55AM +0200, Marco van de Voort wrote: > > > > I can successully compile and test the plugin source listed at

Re: [fpc-pascal]XChat plugins using FPC

2003-07-22 Thread James Mills
n line 7 "(XCHAT_IFACE_MINOR * 100) + \" What do I do with these errors though ? cheers James > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://list

Re: [fpc-pascal]XChat plugins using FPC

2003-07-22 Thread James Mills
can save a lot of time) Now once these headers are converted... When writing the plugin source itself, do I need to use PChar's instead of pascal strings ? cheers James > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://

[fpc-pascal]XChat plugins using FPC

2003-07-22 Thread James Mills
the right direction... cheers James -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread James Mills
suited to work with FPC, till we have sufficient support for > threads and the like. (scheduled for 1.2) Good :) The more FPC stuff out there the better I say, it's a bloody beautifull compiler of a very nice old language! cheers James > > Michael. > > > _

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread James Mills
for creating this suite... cheers James > > -- > Lukas Gebauer. > > E-mail: [EMAIL PROTECTED] > WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP > Library > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http:/

Re: [fpc-pascal]Synapse for FPC

2003-07-21 Thread James Mills
Lib. > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 09:41:11AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > Well the only bad thing is that it returns data where there should > > be no > > data. ie: '""' instead of the expected '

Re: [fpc-pascal]Re: SQLite and NULL Strings...

2003-07-15 Thread James Mills
___ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Softwar

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 08:53:12AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 15, 2003 at 08:35:44AM -0700, Alan Mead wrote: > > > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > >

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 08:35:44AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > My program relies on the fact that some fields (which are string > > types) > > are null. I'm not sure what to say next so I'll leave it at t

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 05:27:42PM +0200, Michael Van Canneyt wrote: > > > On Wed, 16 Jul 2003, James Mills wrote: > > > On Tue, Jul 15, 2003 at 07:04:05AM -0700, Alan Mead wrote: > > > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > &g

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 07:04:05AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 15, 2003 at 04:36:24AM -0700, Alan Mead wrote: > > > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > &g

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Mon, Jul 14, 2003 at 03:39:36PM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Mon, 14 Jul 2003, James Mills wrote

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 03:15:58PM +0200, Michael Van Canneyt wrote: > > > On Tue, 15 Jul 2003, James Mills wrote: > > > On Tue, Jul 15, 2003 at 04:36:24AM -0700, Alan Mead wrote: > > > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > &g

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 04:36:24AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > Just reconfirming with you and solidifying my knowledge. > > The reason it returns "" is because: when working with > > native pasca

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 03:06:44PM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > On Mon, Jul 14, 2003 at 02:26:28PM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Mon, 14 Jul 2003, James Mills wrote

Re: [fpc-pascal]Strange Segfault...

2003-07-14 Thread James Mills
t; > end up with > > similar results. > > > > You'd be much better off Returning a value, and thereby avoiding > > the > > potential for big allocation/deallocations. That or use > > shortstrings. > > > > Matt > > > > > &

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 03:39:36PM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Mon, 14 Jul 2003, James Mills wrote

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > Hi, > > > > This is a very weird behaviour I've found of either SQLite, or the Unit. > > I'm not sure... I have been discussi

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 02:26:28PM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Mon, 14 Jul 2003, James Mills wrote

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > Hi, > > > > This is a very weird behaviour I've found of either SQLite, or the Unit. > > I'm not sure... I have been discussi

[fpc-pascal]SQLite and NULL Strings...

2003-07-13 Thread James Mills
--- 0 -> channelNotice Fields --- 0 -> "" This should be: 0 -> Any ideas anyone ? The attached sqlite.pas and sqlitedb.pas were put together by Michael, myself and Eric Jourde (possibly ported from tsqlite I hear) cheers James -- - - James Mills Zero Defect S

Re: [fpc-pascal]Strange Segfault...

2003-07-13 Thread James Mills
't see any problem) cheers James > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist -

Re: [fpc-pascal]Strange Segfault...

2003-07-13 Thread James Mills
tions weren't working :) cheers James > > > __ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > ___ >

Re: [fpc-pascal]Strange Segfault...

2003-07-10 Thread James Mills
functions)... Perhaps there isn't... cheers James > > Matt > > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Gr

Re: [fpc-pascal]Strange Segfault...

2003-07-10 Thread James Mills
: String); > > A string, or a array of char? > > IMHO it is logical that it crashes? I am passing ['0'..'9'] to a: const chars: array of char; Can't you do this ? If not how else can I rewrite this function ? cheers James > > > _

Re: [fpc-pascal]Strange Segfault...

2003-07-10 Thread James Mills
behaviour... cheers James > > Matt > > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal mail

[fpc-pascal]Strange Segfault...

2003-07-10 Thread James Mills
har; var index: Integer): Boolean; var i: Integer; begin isin := TRUE; for i := low(chars) to high(chars) do begin if NOT isin(s, '' + chars[i]) then begin index := i; isin := FALSE; break; end;

  1   2   >