Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
ugh ? > > Basically yes. But derive it anyway, in case you want to extend it later. In this case then as I've both read your replies and the webpage about TList I shall extend it :) That'll probably be the best option. Right ? Thanks for your prompt help, I dunno why I'm codi

Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
Actually Michael, Could you possibly spare 5 mins and give a really simple example of a TList descandent ? I'm a tad confused here, (too slowly getting anywhere)... Thank you :) cheers James ___ fpc-pascal maillist - [EMAIL PROTECTED]

Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
e descandent of TList and extend it... I will use your basic design below, thank you :) cheers James > > TMyListItemClass = class; {your class to store} > > TMyList = class > private > FList: TList; > protected > procedure SetItem( Index: integer; Value: TMyListIte

Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
is: TMyList = class(TList); . . . And thereby extend the basic TList class into a custom List ? The way you use TList is as a private variable in a generic class. cheers James > > TMyListItemClass = class; {your class to store} > > TMyList = class > private > FList: TList

[fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
line numbers ? (I think perhaps the SQLite library is interferring with the debug symbols in the program? I'm not sure). Any ideas ? cheers James -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
On Mon, Jul 07, 2003 at 08:19:38PM +1000, James Mills wrote: > Hi, > > I have a problem with the SQLite library (www.sqlite.org). > I believe Michael helped me with the conversion of the headers and the > unit that Eric Jourde wrote. > > This all works fine, however when com

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
tested it on Linux, and the only modification to the unit necessary (I think) is that you have to use the cMem unit. It works quite well and I'll continue to use this for my programs that require an embedded database vs. mysql server. cheers James > > Matt > > > Hi, &

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
blem with his unit other than the fact that, with the current version of SQLite the cMem unit was needed in order because of the way SQLite uses memory. cheers James > > Matt > > > > ___ > fpc-pascal maillist - [EMAI

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
On Mon, Jul 07, 2003 at 03:26:41PM +0100, Matt Emson wrote: > > > How so ? > > James, he did *not* port this app to BeOS, some one else did. He wrote a > Pascal interface to the version that that developer had ported to BeOS > (you're following me right ;-). He therefor

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
i > compatibility over Turbo Pascal?!?! Good question. However I don't really care about Delphi compatibility, as as such I think the FPC developers put it in Strings for a very logical reason. Afterall it is a String function call. cheers James > > Matt > > - Original Me

Re: [fpc-pascal]New to the list/question

2003-07-09 Thread James Mills
CL I believe. cheers James > > > Kevin > > On Wed, 9 Jul 2003, Alan Mead wrote: > > > Kevin, > > > > Welcome! What do you mean by a "text-based interface"? > > > > -Alan > > > > --- Kevin Monceaux <[EMAIL PROTECTED]> wrote

[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;

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

2003-07-10 Thread James Mills
On Thu, Jul 10, 2003 at 03:58:02PM +0100, Matt Emson wrote: > James, have you tried using non overloaded function calls?? ie. StrReplace > and ArrReplace etc. It should take a few minutes to implement, and may yield > the answer you're seeking. > > I still prefer the way

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
On Thu, Jul 10, 2003 at 05:25:21PM +0100, Matt Emson wrote: > > > procedure replace(search: String; replace: String; var s: String); > > > procedure replace(const chars: array of char; replace: String; var s: > String); > > > > A string, or a array of char? >

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

2003-07-13 Thread James Mills
t; end; > > var > w, s:string; > begin > s:='a1ebf2c3d45'; > readln(w); > replace(['0'..'9'], w, s); > writeln(s); > end. Thank you, this worked quite well and is what I needed. And yes Matt Emson, I do understand why my original func

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

2003-07-13 Thread James Mills
nction in that way ? It could of course be written two different ways, but I'd rather this way where I modify the string passed to the function. Explain it to me :) (I'm the only one that works on this project of ~30,000 LOC, so I don

[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]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

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]Strange Segfault...

2003-07-14 Thread James Mills
.pas > test_string500.pas(15,13) Fatal: Internal error > > These errors disappear when I edit the string definitions back to > length 255 or less. Should I just avoid using longer strings or is > there a compiler switch I have to include? Or is there a tutorial on > FPC strings (I n

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]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-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 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 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 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 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 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]Re: SQLite and NULL Strings...

2003-07-15 Thread James Mills
nd the NULL result... > > Just a thought, but maybe you could return > the single-character string: #0 Thanks mate :) I'm so lost anyway, all these people with much deeper knowledge of databases... cheers James > > > > > > ___

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]Synapse for FPC

2003-07-21 Thread James Mills
et of classes vs. another set of classes developer by person X ? :) Just a friendly question, I know there are a lot of TCP/IP suites around... cheers James > > > > -- > Lukas Gebauer. > > E-mail: [EMAIL PROTECTED] > http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread James Mills
orld! But on FPC world I not see comparable > TCP/IP library. Really lot of people asking me: "Exists Synapse for FPC?" > > FPC world now can use five years experience with Synapse from delphi > world. ;-) You've convinced me :) Thanks

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. > > > _

[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]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://

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-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-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-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-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]A suggestion.

2003-07-25 Thread James Mills
gt; > The text mode IDE already has support for this (using the html > documentation). I use to use borland's turbo pascal ide once too, but I don't miss this feature :) Nowadays vim suits be better cheers James > > > Jonas > > > __

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

[fpc-pascal]runtime 201 with swapword function

2003-07-25 Thread James Mills
201 at 0x08052AA2 0x08052AA2 0x08052AC2 0x080480B0 cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, us

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

2003-07-25 Thread James Mills
arn it and write your own data structures to contain the jpeg image data, decode it into pixel arrays... It's all there in the specs :) cheers James > > > Ing. Rainer Hantsch > > > > ___ > fpc-pascal maillist - [EMAIL PRO

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]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: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]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
riting your won routine!! ;-) I didn't write it, one of the FPC developers did last year in the mailing list :) cheers James > > Matt > > > > Hi, > > > > Why does the following result in a runtime error ? > > > > program example; > > &

[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

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

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

2003-08-02 Thread James Mills
. 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 you, once you learn to use SDL, you could write a wrapper module so you

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]Error 216 with SDL

2003-08-04 Thread James Mills
I believe the demos themselves aren't that good. cheers James > > > Holger > > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - -Zero Defect Softwa

Re: [fpc-pascal]Error 216 with SDL

2003-08-04 Thread James Mills
you have now, so that type and > function definitions are wrong now. There are two possible solutions: > > a) install the same version of SDL on your system as what you were > using before > b) translate the SDL headers of the new version to Pascal (or bug >

Re: [fpc-pascal]SQLITE with FPC

2003-08-14 Thread James Mills
te on Linux. Cause I haven't yet... There are some around on torry.net but they're for delphi using windows. I've asked the author if he could convert it to FPC for linux but without much luck atm. I say this because you're going to run into pascal st

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

2003-08-14 Thread James Mills
ighlighting. I think there is an IDE for Linux though, you'll find it on the Free Pascal website. There's also Lazarus that'll you find as well which you can use. It's similar in many ways to Delphi and can be used for all your development and gui needs (though I have

Re: [fpc-pascal]SQLITE with FPC

2003-08-14 Thread James Mills
ss still needs to be written (although not 100% necessary). I can't write it though, no knowledge of Datasets... cheers James > Any hint or examples is welcome. > jilani > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://

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]QWord vs. function Abs

2003-08-20 Thread James Mills
ith FPC 1.0.6 ... This probably means that FPC cannot support qwords in the abs function even though the documentation says "Any numerical type". Not sure though :) cheers James > > With FPC compiler 1.0.10/IDE 0.9.2 i got this error message: > > 'Can't deter

[fpc-pascal]Debuggin

2003-08-20 Thread James Mills
to be shown, the above example does not show these. cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn'

[fpc-pascal]Debugging FPC

2003-08-21 Thread James Mills
(-1) 0x080A33B1 2) With compile modes: -gg -gl Aren't line info and tracebacks suppose to be shown, the above example does not show these. cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it s

Re: [fpc-pascal]RE: Debugging FPC

2003-08-22 Thread James Mills
handlers in my program though... So how does it not show the line number info ? cheers James > > > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > _

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]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 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
what Jonas said won't work... cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape. __

Re: [fpc-pascal]Debugging FPC

2003-08-23 Thread James Mills
ckages. It may look like I might have to remove all of FPC and compile and install the whole thing myself to get all the features I need ;) Any other Debian users on this mailing list with some advice ? cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools.

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!) -- -

[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]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

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-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

Re: [fpc-pascal]ICS for FPC 1.1

2003-08-28 Thread James Mills
phi 5 but that was many years ago. I've used FPC ever since. Goes to show you how much I know huh :P What other internet suites are there besides ICS that can be used easily with FPC ? cheers James > > Marco > > ___ > fpc-pascal ma

Re: [fpc-pascal]Lazarus

2003-08-28 Thread James Mills
rely gone. That's so pathetic. What'd the hacker do anyhow ? And how the heck does a hacker break into a *nix box ? (I assume it is...) cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it

Re: [fpc-pascal]ICS for FPC 1.1

2003-08-28 Thread James Mills
ps :( cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape. ___ fpc-pascal maillist -

Re: [fpc-pascal]thread

2003-09-02 Thread James Mills
ce example in the FCL source. Not sure if there's an example in the demos, might be :) cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -I

Re: [fpc-pascal]Read from command line

2003-09-07 Thread James Mills
g > test') It isn't any different on Linux: paramCount (returns the number of parameters passed to the program) paramStr(i) (returns the i'th parameter) cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it

[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 -- - -Z

[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 Gr

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

[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 ? ch

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]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-12 Thread James Mills
; > 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 - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and sh

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 --

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-13 Thread James Mills
; particular one? And you say when you POST... that means it works if > you ... (I'm blanking on name of the other method)? 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 for a fo

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-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]CR / CRLF problem when redirecting to file

2003-09-14 Thread James Mills
ndows, which change mode and have to be 'reset'). Yes this happens all the time when dealing with stdin and stdout with FPC. I'm not sure why either :) Log files can sometimes get really ugly with CRLF's appearing where they shouldn't be (seeing as it's linux not msdos)

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

2003-09-14 Thread James Mills
e if > you redirect it to a file. In some of my programs I do NOT use the CRT unit but a similar thing happens. Go figure :) cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn

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 --

[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. ch

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

Re: [fpc-pascal]GTK: multiline label

2003-10-09 Thread James Mills
e to replace the "\n" ? > > > > Thank's for any help > > > > Would gtk_label_new('Line1' + #13 + 'Line2'); work? Probably only for Linux/Unix cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two too

[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]gpm library compiled by default ?

2003-10-22 Thread James Mills
pile Mouse > with symbol NOGPM defined (or even with NOMOUSE defined since you don't > use mouse at all). I think I do use the KeyBoard unit. So I could compile it with fpc -dNOMOUSE ? cheers James -- -Zero Defect Software Engineers Group - ZDSEG - -Web: http://daisy.ods.org/ -Wiki:

<    1   2   3   4   5   6   7   8   9   >