Re: [fpc-pascal] differences between .pp and .pas files

2013-02-25 Thread John Coppens
On Mon, 25 Feb 2013 12:36:18 + Graeme Geldenhuys wrote: > Kate, gEdit, syn, mcedit, vim, emacs, Notepad++, Geany etc... I wouldn't > even know where to start finding all their bug tracker information. And > honestly, I simply don't have the time. Using .pas is just simpler. It's mostly not t

Re: [fpc-pascal] Unicode file routines proposal

2008-06-30 Thread John Coppens
On Mon, 30 Jun 2008 10:03:18 -0300 "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote: > On Mon, Jun 30, 2008 at 9:55 AM, Graeme Geldenhuys > <[EMAIL PROTECTED]> wrote: > > I thought UTF-8 was prefered. Hence the reason Lazarus followed the > > UTF-8 route in LCL and Unicode support. > > UTF

Re: [fpc-pascal] DateTimeToUnix bug?

2008-12-30 Thread John Coppens
On Tue, 30 Dec 2008 09:25:29 -0700 "Seth Grover" wrote: > It seems to me that 09-16-1989 12:00:01 should be 621950401, not > 621950400. This seems to be rounding error - if you put 1 ms (milisecond) in the seconds test, the result comes out right. For consecutive seconds, and ms = 0: 09-16-1989

Re: [fpc-pascal] DateTimeToUnix bug?

2008-12-30 Thread John Coppens
On Tue, 30 Dec 2008 09:25:29 -0700 "Seth Grover" wrote: > Is this broken or am I missing something? I suspect the problem is in this function: Function SecondsBetween(const ANow, AThen: TDateTime): Int64; begin Result:=Trunc(Abs(ANow-AThen)*SecsPerDay); end;

Re: [fpc-pascal] Can I encorperate PDF files

2009-02-20 Thread John Coppens
On Fri, 20 Feb 2009 12:35:07 -0500 John Youngquist wrote: > I would like to add a help facility that would search a topic in a > PDF format manual and display the appropriate page. It there > Module to read and search PDF file available. An easy solution in Linux would be to call xpdf from the p

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread John Coppens
On Mon, 23 Mar 2009 18:22:15 +0200 Graeme Geldenhuys wrote: > I have been using bin2obj for two years now. It works perfectly for > me, even though it's a (occasional) two step process. My application > changes more than the resource I include. ... and you can add the conversion into the Makefil

Re: [fpc-pascal] IE 200307043

2009-05-25 Thread John Coppens
On Mon, 25 May 2009 21:09:44 + Prince Riley wrote: > Type checking for valid > pointer arithmetic and the difference between a 'null' or empty pointer > and one that has the lowest value of it's type. Maybe the use of 'nil' in an expression should not be allowed at all (except comparisons).

Re: [fpc-pascal] BoolToStr() with correct locale output

2009-06-26 Thread John Coppens
On Fri, 26 Jun 2009 15:54:55 +0100 Henry Vermaak wrote: > > How come nobody ever noticed this? Does everybody only write English > > programs. :-) I _hate_ to think of the consequences of localization of those strings. Have we had enough of the . and , problem? I don't think we need another caus

Re: [fpc-pascal] Insert into ... mysql

2009-06-28 Thread John Coppens
On Sun, 28 Jun 2009 15:42:04 -0500 César Espinoza wrote: > But I can't (may be I dont know :-( ) insert data in a table If you can query, but not insert, there are a few things to check: - Is the syntax of your insert correct? I mean, does column 'lugar' exist, and is it a varchar column, etc

Re: [fpc-pascal] GRAPHICS HELP : PLEASE PLEASE????

2009-06-28 Thread John Coppens
On Sun, 28 Jun 2009 18:23:12 -0700 (PDT) Zachary Marlow wrote: > Well >   Like How to draw a circle , I just need some example code please Check this tutorial: http://pascalprogramming.byethost15.com/lesson8.php John ___ fpc-pascal maillist -

[fpc-pascal] Documentation strangeness

2010-04-03 Thread John Coppens
Hi people, I was using the Pascal reference manual, and found that 'fi' was replaced by some strange character... Modifiers came out as Modi�ers etc. This seems to have happened all over the document at: http://community.freepascal.org:1/docs-html/ref/ref.html This is just a little frustrati

Re: [fpc-pascal] Documentation strangeness

2010-04-03 Thread John Coppens
On Sat, 3 Apr 2010 20:36:56 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: > The refered documentation (on the FPC community server) is from 2006: > > Reference guide for Free Pascal, version 2.2 > Document version 2.0 > August 2006 Yep... But that is the manual which is on-line at the

Re: [fpc-pascal] Documentation strangeness

2010-04-04 Thread John Coppens
On Sun, 4 Apr 2010 12:24:36 +0200 (CEST) Michael Van Canneyt wrote: > The community version ("with comments") should be simply deleted; > it causes only confusion and more work without any benefit. > > I have removed the links to them. Proof of concept: I hadn't found the 'good' one - just the

[fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
Hi all, When trying to debug a series of events in a program, parts of source lines disappear - apart from the fact that the execution secuence seems very off. This extract from the source file: if ch = eofchar then sy := sps[ch] else begin error(erchar); next

Re: [fpc-pascal] Documentation strangeness

2010-04-05 Thread John Coppens
On Mon, 5 Apr 2010 00:07:07 +0200 Graeme Geldenhuys wrote: > Luckily (no offence meant) the documentation doesn't change that much > or that quickly. I'll probably keep to the same release cycle as FPC - > whenever a new FPC is released, release new FPC INF docs too. Hi Graeme, Sorry for my ign

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
On Mon, 5 Apr 2010 16:21:33 +0200 Jonas Maebe wrote: > > I haven't seen this kind of problem before, not in Pascal nor in C. > > Why is the '... to 1' appearing in the listing? > > This usually means that you modified the file since it was loaded in > the debugger. That was it - but it seems sl

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
On Mon, 5 Apr 2010 16:21:33 +0200 Jonas Maebe wrote: > This usually means that you modified the file since it was loaded in > the debugger. And it still gives some strange result: if ch = eofchar then sy := sps[ch] else begin error(erchar); nextch; g

[fpc-pascal] Dosemu problems compiling

2010-04-05 Thread John Coppens
Hello all, After installing fpc 2.4.0 on a freedos directory, I had the following problems: - I tried to install using the install program, but dosemu crashed when clicking on 'Continue' - So I installed the base package manually, adjusted the path. Now fpc (without arguments) starts correctly,

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
On Mon, 5 Apr 2010 17:04:55 +0200 Jonas Maebe wrote: > Unlikely. You can always disable the explicitly with -O-. Without a > compilable example program that demonstrates the problem I cannot help > further. Ok... Thanks! Will try to extract the important part. John _

Re: [fpc-pascal] Documentation strangeness

2010-04-05 Thread John Coppens
On Mon, 5 Apr 2010 17:25:44 +0200 Graeme Geldenhuys wrote: > Wikipedia has some information on IPF. > http://en.wikipedia.org/wiki/Information_Presentation_Facility Thanks for the extensive answer, Graeme! I'm sure the selection of IPF/INF caused some discussion at the time, particularly at a

Re: [fpc-pascal] Dosemu problems compiling

2010-04-06 Thread John Coppens
On Mon, 5 Apr 2010 21:38:33 +0200 Jonas Maebe 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=457447&group_id=49784&func=browse"; > > This is a bug in DosEMU. I've re

Re: [fpc-pascal] Free Pascal 2.6.0 released!

2012-01-01 Thread John Coppens
On Sun, 1 Jan 2012 16:43:01 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: > For Downloads, please use the FTP server at > > ftp://freepascal.stack.nl/pub/fpc/dist/2.6.0/ Hallo Marco! A new happy 2012 for you and the FPC team... Wanted to point out that the above directory is empty!

[fpc-pascal] eof strangeness

2006-04-23 Thread John Coppens
Hi all. While modifying some older programs, I found a strange effect with eof (input). When calling eof(input), the program needs an key to continue. The definition of eof (according to the FPC docs) is that it immediately returns... which is what I need. Can anyone suggest a solution for this

[fpc-pascal] eof strangeness

2006-04-23 Thread John Coppens
Hi all. While modifying some older programs, I found a strange effect with eof (input). When calling eof(input), the program needs an key to continue. I just downloaded 2.0.2, with the same result. The definition of eof (according to the FPC docs) is that it immediately returns... which is what

Re: [fpc-pascal] ParamStr(0) bug??

2006-04-24 Thread John Coppens
On Mon, 24 Apr 2006 13:35:40 -0400 Bob Richards <[EMAIL PROTECTED]> wrote: > I have written a program who's behavior depends on the name by which it > has been invoked. This is not uncommon, for instance sendmail invoked > as mailq behaves in a completely different way. You could try to access th

[fpc-pascal] aterm won't run fp

2006-04-24 Thread John Coppens
Hi all Even though I don't have a solution to the previous problem, I already have another one. A while ago I tried 'fp' and didn't get anything. Not having time, I dropped the issue. Now I tried again, and decided to dig a little deeper: 1) in an 'aterm', calling fp doesn't show _anything_, jus

Re: [fpc-pascal] google summer of code?

2006-04-27 Thread John Coppens
On Thu, 27 Apr 2006 13:20:39 -0300 "Flávio Etrusco" <[EMAIL PROTECTED]> wrote: > Or because opensource world tends to be C-centric, or because FPC > didn't make to the news a lot in USA, or because... we could go on for > some time. This is beginning to show some similarities to the DMOZ (Google'

Re: [fpc-pascal] eof strangeness

2006-05-02 Thread John Coppens
On Tue, 02 May 2006 14:42:00 -0400 Bob Richards <[EMAIL PROTECTED]> wrote: > John Coppens wrote: > > > program testeof; > > > > begin > > if eof then > > writeln('EOF found') > > else > > writeln('No EOF found

Re: [fpc-pascal] aterm won't run fp

2006-05-02 Thread John Coppens
On Tue, 25 Apr 2006 08:52:05 +0200 (CEST) [EMAIL PROTECTED] (Marco van de Voort) wrote: > > Can anyone tell me what's missing to get aterm to run fp? > > Implementation of the Xterm terminal standard ? :) > > Debugging startup (possibly using a simpler example like installer > first), is the onl

[fpc-pascal] Redirect under Linux

2006-06-27 Thread John Coppens
Hi all... I was testing a program I wrote in FPC which directs the cursors (using crt), by redirecting the output to a file, but was surprised that the escape sequences weren't in the file. Checking the source of the crt units, I found that when redirecting, the sequences are switched off. Is th

[fpc-pascal] Strange error message?

2006-07-07 Thread John Coppens
Hi... I was trying to compile some old TP code and got a strange error message: program test_reg; type ShTableLine= procedure(n: integer); procedure DummyShLine(Nr: integer); begin end; {DummyShLine} procedure UseIt; const PrevProc: ShTableLine = DummyShLine; begin end; be

Re: [fpc-pascal] Strange error message?

2006-07-07 Thread John Coppens
On Fri, 07 Jul 2006 20:14:13 +0200 Vincent Snijders <[EMAIL PROTECTED]> wrote: > or compile your code in tp mode (fpc -h for help about command line > parameters). > > Vincent > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lis

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-20 Thread John Coppens
On Mon, 17 Jul 2006 21:12:31 +0200 Florian Klaempfl <[EMAIL PROTECTED]> wrote: > I'am currently thinking about implementing OpenMP support in FPC. Florian, Have you looked at Pascal-FC (a language developped based Pascal/0, I believe, by Alan Burns)? I've used it to teach multiprogramming, and i

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-20 Thread John Coppens
On Thu, 20 Jul 2006 21:11:49 +0200 Vinzent Höfler <[EMAIL PROTECTED]> wrote: > Alan Burns? That's a name which rings a bell. You could have send the > URL, though. ;) > > http://www-users.cs.york.ac.uk/~burns/pf.html > > Hmm, and taking a peek look at the examples, it doesn't really surprise >

Re: [fpc-pascal] even linus torvalds prefer pascal over c

2006-12-02 Thread John Coppens
On Sat, 02 Dec 2006 08:01:04 -0500 David Mears <[EMAIL PROTECTED]> wrote: > From the first pascal program that I wrote in the late 80s to today, > I've only used Goto once and that was because I was still learning the > language - it was essentially a repeat loop and I replaced it in later > v

Re: [fpc-pascal] even linus torvalds prefer pascal over c

2006-12-02 Thread John Coppens
On Sat, 2 Dec 2006 19:39:34 +0100 (CET) Daniël Mantione <[EMAIL PROTECTED]> wrote: > However, assembler coded is not portable. A hand optimized Pascal > based solution with goto statements might be preferable over assembler > code. For example, in the file rtl/unix/video.pp , the procedure > up

Re: [fpc-pascal] even linus torvalds prefer pascal over c

2006-12-03 Thread John Coppens
On Sat, 2 Dec 2006 20:35:49 +0100 (CET) Daniël Mantione <[EMAIL PROTECTED]> wrote: > Well, this is the very point Torvalds was trying to make in the cited > discussion; he wants to use goto in Linux source code, because he > considers it the right thing to do in certain situations. I just happe

Re: [fpc-pascal] USB serial interface

2006-12-26 Thread John Coppens
On Tue, 26 Dec 2006 20:23:56 +0100 Rainer Stratmann <[EMAIL PROTECTED]> wrote: > We tried USB converters with prolific chipset and it hangs up then, so > FTDI chips would be better. I read also somewhere a lack of latency. > May be it is also a question of the Kerneldriver and the driver will > im

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread John Coppens
On Tue, 26 Dec 2006 15:10:27 +0100 Rainer Stratmann <[EMAIL PROTECTED]> wrote: > In my program it works for writing, but reading is not possible at the > moment. Did you check if (hardware) handshaking is enabled? I've found quite regularly that one of the lines is stopping the input. If you have

Re: [fpc-pascal] Linux serial interface

2006-12-27 Thread John Coppens
On Tue, 26 Dec 2006 21:53:25 +0100 Rainer Stratmann <[EMAIL PROTECTED]> wrote: > How to do that? > The code for initialisation of the serial interface: Run stty --help with clocal you can disable all the modem control signals. (I believe the ioctl have an equivalent) John

Re: [fpc-pascal] Congratulations to FPC!

2007-03-27 Thread John Coppens
On Mon, 26 Mar 2007 15:42:05 +0700 Bisma Jayadi <[EMAIL PROTECTED]> wrote: > I knew about it too as I'm a member of Morfik Pioneer. Just want to > share a good news to others who doesn't know yet about Morfik. :) Thanks for the heads-up, but the site at Morfik can use a little work to convince po

Re: [fpc-pascal] Congratulations to FPC!

2007-03-27 Thread John Coppens
On Tue, 27 Mar 2007 21:49:11 +0700 Bisma Jayadi <[EMAIL PROTECTED]> wrote: > > 3) Even though there's a Linux logo at the bottom, I can't find a > > Linux version to download. (Maybe that has to do with 2)) > > Morfik IDE runs ONLY on windows platforms but the executable output can > be run on ot

Re: [fpc-pascal] Congratulations to FPC!

2007-03-27 Thread John Coppens
On Tue, 27 Mar 2007 22:48:00 +0700 Bisma Jayadi <[EMAIL PROTECTED]> wrote: > I even proposed a more "radical" solution for the next step: > porting the Morfik IDE to a Morfik (web) app. ;) I hope you don't mean 'over the web'. I just recovered my ADSL link, so I can start developing again? Not fo

Re: [fpc-pascal] Congratulations to FPC!

2007-03-27 Thread John Coppens
On Tue, 27 Mar 2007 20:59:50 +0200 Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > Even with everything local, loading 75+M of Java to have a decent > > editor > > Ajax has nothing to do with Java applets. No, I meant that a complete HTML based IDE would need a local editor, which I suppose woul

Re: [fpc-pascal] Web Service Toolkit - Notify the Client

2007-06-03 Thread John Coppens
On Sun, 3 Jun 2007 16:55:23 +0200 (CEST) Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > Is it possible to delay a SOAP call a few seconds at the service > > provider (until new data is available)? Hmm, this reveals the question > > what are the timeouts for TCP/IP connection and for the web se

Re: [fpc-pascal] How to analyze a core dump?

2007-06-10 Thread John Coppens
On Sun, 10 Jun 2007 21:30:09 +0200 Luca Olivetti <[EMAIL PROTECTED]> wrote: > I'm trying to debug a segment violation, I compiled the program with > -g, but analyzing the core dump isn't really helpful, maybe the > "warning can't read pathname for load map" is the cause? Or it's > possible that it

[fpc-pascal] Serial port interrupts?

2007-10-05 Thread John Coppens
Hello people. To make a debugging tool, I need to time changes on the serial port control and status lines on a Linux machine. The serial port hardware has this possibility, but is it possible to program this in a more or less high-level way? I did this a long time ago in DOS. I've looked at sev

[fpc-pascal] fpnanosleep (again)

2007-11-07 Thread John Coppens
Hi all. I need a small delay in my program, which bitbangs an i2c interface connected to the parallel port. This is mainly for educational purposes, so please don't question the wiseness of this decision. Is there any simple way (short of writing a kernel module) of delaying less than the HZ valu

Re: [fpc-pascal] fpnanosleep (again)

2007-11-07 Thread John Coppens
On Wed, 7 Nov 2007 19:27:39 -0300 John Coppens <[EMAIL PROTECTED]> wrote: > Is there any simple way (short of writing a kernel module) of delaying > less than the HZ value? Weirdly, fpNanosleep seems to delay 8.3 ms > minimally (weird, 'cause that's less than the HZ val

Re: [fpc-pascal] fpnanosleep (again)

2007-11-07 Thread John Coppens
On Wed, 7 Nov 2007 19:27:39 -0300 John Coppens <[EMAIL PROTECTED]> wrote: > Is there any simple way (short of writing a kernel module) of delaying > less than the HZ value? Very unelegant, but it works: procedure usleep(time: longint); var tv: timeval; tz: timezone; diff,

Re: [fpc-pascal] fpnanosleep (again)

2007-11-08 Thread John Coppens
On Thu, 8 Nov 2007 13:43:48 +0100 Rainer Stratmann <[EMAIL PROTECTED]> wrote: > http://en.wikipedia.org/wiki/RDTSC Interesting... I'm guessing gettimeofday would use this register to obtain the hi-res time it provides - does it? Thanks John ___ fpc-pas

Re: [fpc-pascal] can we have fpc's doc in chm format?

2007-12-02 Thread John Coppens
On Sun, 2 Dec 2007 17:25:16 +0100 (CET) Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > But I don't see how CHM is better than PDF. PDF offers all that CHM > offers, plus well-formatted printed output. In my case, I have the impression that CHM is much lighter than PDF (which is logical consider

Re: [fpc-pascal] can we have fpc's doc in chm format?

2007-12-03 Thread John Coppens
On Mon, 3 Dec 2007 14:00:14 +0200 "Adrian Maier" <[EMAIL PROTECTED]> wrote: > I'm still unable to to copy text in xpdf. But I've just installed > evince and copying text > works . Thanks for telling me about it , Graeme ! xPDF version 3.01 permits copying. It's a little awkward, as the selecti

Re: [fpc-pascal] serial.pp - I can't talk to modem

2008-01-02 Thread John Coppens
On Wed, 2 Jan 2008 16:15:33 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > > SerSetParams(serialhandle, 2400, 8, NoneParity, 1, > > [RtsCtsFlowControl]); Hi... I seem to recall (vaguely) that modem comms were (by default) Even parity, and 7 bits. Can't recall default speed though. Could

Re: [fpc-pascal] Extension .pp or .pas

2008-01-11 Thread John Coppens
On Fri, 11 Jan 2008 14:55:40 + Matt Emson <[EMAIL PROTECTED]> wrote: > Was ".pp" the UNIX standard? Suspecting the analogy with .c and .cc, I guess it was .p in the non-OO era and .pp with objects. John ___ fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] Empty string

2008-03-07 Thread John Coppens
On Fri, 7 Mar 2008 15:09:36 +0100 Damien Gerard <[EMAIL PROTECTED]> wrote: > Consequently, it can not be the same code. Otherwise I understood > nothing :) '' is an empty string, _and_ its length is zero (of course). So the compiler is so intelligent as to replace length(s) = 0, or s = '' by t

Re: [fpc-pascal]Graphics woes

2003-01-27 Thread John Coppens
On Mon, 27 Jan 2003 14:19:56 +0100 (W. Europe Standard Time) Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > On Sat, 25 Jan 2003, John Coppens wrote: > > > Hi all... > > > > I've been needing quick & dirty graphing capability, and I'm miss

Re: [fpc-pascal]Graphics woes

2003-01-28 Thread John Coppens
On Tue, 28 Jan 2003 11:02:43 +0100 Jonas Maebe <[EMAIL PROTECTED]> wrote: > > Given the large amount of question about "can't find -lvga when > compiling graph programs under linux" I would say the same about > lib(s)vga. I also think SDL would be a better choice (though someone > needs to do

[fpc-pascal]No source file named ...

2003-09-08 Thread John Coppens
Hi again Yet another problem - this one seems more or less erratic, though I haven't found a cause yet. Sometimes it works, sometimes not. When in gdb, I get: (gdb) br wav_fmt.pas:330 No source file named wav_fmt.pas. I checked that I was in the correct directory: (gdb) pwd Working directory /d

[fpc-pascal]Can't find unit DRIVERS

2003-09-08 Thread John Coppens
Hi all. Just downloaded the 1.0.10 package and tried to compile the ide. I had quite a few problems: 1) in packages/ two directories seem to be in the wrong directory. Imlib and Gnome are looked for in the extra directory and they installed in the root of packages. (Gnome is looked for as gnome1?

Re: [fpc-pascal]No source file named ...

2003-09-08 Thread John Coppens
On Mon, 8 Sep 2003 21:05:39 -0300 John Coppens <[EMAIL PROTECTED]> wrote: > Hi again > > Yet another problem - this one seems more or less erratic, though I > haven't found a cause yet. Sometimes it works, sometimes not. When in > gdb, I get: > > (gdb) br wav_fm

[fpc-pascal]Can't find unit DRIVERS

2003-09-08 Thread John Coppens
Hi all. Just downloaded the 1.0.10 package and tried to compile the ide. I had quite a few problems: 1) in packages/ two directories seem to be in the wrong directory. Imlib and Gnome are looked for in the extra directory and they installed in the root of packages. (Gnome is looked for as gnome1?

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

2003-09-14 Thread John Coppens
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 writeln('The quick brown fox jumps over the lazy dog''s back ', i); end. when doing

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

2003-09-14 Thread John Coppens
On Sun, 14 Sep 2003 17:57:57 +0200 Jonas Maebe <[EMAIL PROTECTED]> wrote: > That's because you are using the crt unit. The crt unit is only meant > for screen display, it has to use all sorts of tricks on a *nix console > (setting it to raw mode, for instance). That's why you get garbage if > y

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

2003-09-14 Thread John Coppens
On Mon, 15 Sep 2003 11:26:40 +1000 James Mills <[EMAIL PROTECTED]> wrote: > > In some of my programs I do NOT use the CRT unit but a similar thing > happens. Go figure :) Hi James... I didn't have crt in my program, but called another unit that did have it. So the danger is always present ;-) R

Re: [fpc-pascal]working with bitmaps

2003-10-17 Thread John Coppens
Hello Rudolf, Did you check the 'fly' program? I've use it to create something like you want to do. It's stand-alone, but from pascal you can generate a series of simple instructions into a text file, the have 'fly' execute them. According to my docs, the URL is http://martin.gleeson.com/fly/ An

Re: [fpc-pascal]Programs don't come back

2004-08-02 Thread John Coppens
On Mon, 2 Aug 2004 12:40:37 -0700 Jeff Weeks <[EMAIL PROTECTED]> wrote: > Fedora core II. My programs seem to take over the whole screen and > when they finish the system is stuck. Linux doesn't come back. I have > to reboot every time. There are no loops.. just hitting "END.". > > Any sugg

Re: [fpc-pascal]Programs don't come back

2004-08-02 Thread John Coppens
On Mon, 2 Aug 2004 16:08:01 -0700 Jeff Weeks <[EMAIL PROTECTED]> wrote: > Ctrl-Alt-F7 works. > > Then I tried the maze sample and it comes back. So I'll figure out > what it's doing differently. > > Thanks, everyone. > > Jeff Hi Jeff... Getting the graph thing to work is delicate (to say th

Re: [fpc-pascal]Programs don't come back

2004-08-04 Thread John Coppens
On Tue, 3 Aug 2004 09:35:14 +0200 Jonas Maebe <[EMAIL PROTECTED]> wrote: > > On 3 aug 2004, at 06:34, John Coppens wrote: > > > I more or less gave up on using graph - it's a bit of a headache to > > have > > the video switch modes, particularly while deb

Re: [fpc-pascal]Keyboard unit questions

2004-09-10 Thread John Coppens
On Fri, 10 Sep 2004 08:33:21 -0700 (PDT) Alan Mead <[EMAIL PROTECTED]> wrote: > I just used the keyboard unit for the first time and it's quite > impressive but I have some questions. > > Initially, I couldn't link on my old RH 7.2 machine because FPC 1.9.4 > couldn't find the GPM libraries. Thi

Re: [fpc-pascal]Keyboard unit questions

2004-09-10 Thread John Coppens
On Fri, 10 Sep 2004 16:00:34 -0700 (PDT) Alan Mead <[EMAIL PROTECTED]> wrote: > > John, thanks for your reply... Sorry, I should have been clearer. > And I typed wrong. The library was in /usr/lib but I guess FPC is > looking for 'libgpm.so' rather than 'libgpm.so.1' .. it's the '.1' > that fo

Re: [fpc-pascal] string comparison with strcomp

2005-04-09 Thread John Coppens
Hallo Marc, I reported this a long time ago, and got an answer like: gettext doesn't accept source strings in UTF-8. The easiest way to solve it is to write the program in English (with english on buttons, etc) and then write a po file for german. I know, I know, not elegant or easy, but it works.

Re: [fpc-pascal] Error: cannot find -lcurses

2005-04-24 Thread John Coppens
On Sun, 24 Apr 2005 16:37:12 +0200 Greenblatt <[EMAIL PROTECTED]> wrote: > Hi, > > I have a problem with FreePascal 1.0.10 under SuSE 9.1. If I want to > compile source code, which makes use of the keyboard unit, I get the > following error message: > > /usr/bin/ld: cannot find -lcurses >

Re: [fpc-pascal] Runtime error 123

2005-05-04 Thread John Coppens
On Wed, 04 May 2005 10:33:46 -0700 Mark Emerson <[EMAIL PROTECTED]> wrote: > What is Runtime error 123? > > It's not documented in the User Manual, but appears to be associated > with the eof function. > > Mark ... 122 'Quota exceeded', 123 'No medium found', 124 'Wrong medium type' I found th

Re: [fpc-pascal] Runtime error 123

2005-05-04 Thread John Coppens
On Wed, 04 May 2005 12:26:54 -0700 Mark Emerson <[EMAIL PROTECTED]> wrote: > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal Many more errors possible in Windoze, it seems. ERROR

Re: [fpc-pascal]

2005-05-04 Thread John Coppens
On Thu, 5 May 2005 09:19:27 +0530 "Anandu R Suri" <[EMAIL PROTECTED]> wrote: > I am writing an operating system using your Free Pascal Compilier > 1.0.10. Most of my code is based on the IA32 opcodes in $ASMMODE INTEL. > I have two problems, both are of importance. > > 1. The very basic problem i

Re: [fpc-pascal] Something like "Is a number"?

2005-07-08 Thread John Coppens
On Fri, 08 Jul 2005 16:39:05 +0200 Thomas Zastrow <[EMAIL PROTECTED]> wrote: > Hello, > > I'm converting some strings with "strtoint" into integers. But > sometimes the string can't be converted to a number. Is there a > function which takes a string and tells me if it is possible or not to > con

Re: [fpc-pascal] System.Write broken?

2005-07-13 Thread John Coppens
On Wed, 13 Jul 2005 16:50:03 -0500 Elio Cuevas Gómez <[EMAIL PROTECTED]> wrote: > The code to read the file looks like this (yeah, bad programming i > know): for j := 0 to MAX_MAPY do > for i := 0 to MAX_MAPX do > Read(MapFile, Mapa[i, j]); > How is Mapa declared? If as integers, it sh

Re: [fpc-pascal] System.Write broken?

2005-07-13 Thread John Coppens
On Wed, 13 Jul 2005 19:55:33 -0500 Elio Cuevas Gómez <[EMAIL PROTECTED]> wrote: > I tried your version, but didn't make much diference. Looks like Write > is indeed broken, i'll report it as a bug. Thanks for all your help :). I tried it here - works fine for me (See code tested below). A doubt:

Re: [fpc-pascal] String to Unicode?

2005-07-23 Thread John Coppens
On Sat, 23 Jul 2005 17:00:15 +0200 Thomas Zastrow <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm producing some XML-Output with a FPC-program. The problem is that > there are special charakters like < and > in the content of some tags, > also some german special charakters which has to be encod

Re: [fpc-pascal] FPC and CD-ROMs

2005-07-25 Thread John Coppens
On Mon, 25 Jul 2005 17:14:02 +0300 Alexey Pavluchenko <[EMAIL PROTECTED]> wrote: > Hello Pianoman, > > Monday, July 25, 2005, 1:35:21 PM, you wrote: > > P> Hi everyone. I have one simple question : How can i eject/close > P> certain CD-ROM drive? I write Certain because I ave more than one so >

Re: [fpc-pascal] Pointers

2005-07-27 Thread John Coppens
On Wed, 27 Jul 2005 20:55:34 -0300 Daniel Franzini <[EMAIL PROTECTED]> wrote: > Hi everyone > > I'm just trying to compile and execute a simple example from a > graphics programming tutorial under FPC. Here is the code > Note that those addresses (like $a000) are all things from the 16-bit worl

Re: [fpc-pascal] Array of Char

2005-08-18 Thread John Coppens
On Thu, 18 Aug 2005 07:24:46 +0200 "Carsten Bager" <[EMAIL PROTECTED]> wrote: > We are moving from another Pascal compiler where this is > allowed. > -- Type txt_typ = packed array[0..1] of char; Const txt1: txt_typ = '12'; without the parenthesis should work.

[fpc-pascal] IDE problems and crosscompiling

2005-10-27 Thread John Coppens
Hi guys... I wish it were as simple as the docs say. On Linux, I type 'fp' and nothing happens - not even the first text appears on the screen, no CPU activity... Ctrl-C exits. I even tried to recompile the entire source code, ran the fp there, same (lack of) luck. I don't care much for the IDE

Re: [fpc-pascal] IDE problems and crosscompiling

2005-10-27 Thread John Coppens
On Thu, 27 Oct 2005 21:05:56 +0200 Vincent Snijders <[EMAIL PROTECTED]> wrote: > Maybe a bit outdated, but this information was gold about a year ago, > http://wiki.lazarus.freepascal.org/index.php/Cross_compiling_for_Win32_under_Linux > > Also the buildfaq.pdf is a good (and up to date) read, if

Re: [fpc-pascal] Lazarus and FPC integration

2005-10-30 Thread John Coppens
On Sun, 30 Oct 2005 15:50:00 -0800 L505 <[EMAIL PROTECTED]> wrote: > Your search - "Polymorphism with primitive data types" - did not match > any documents. Don't use the ""s... Too restrictive. Without them, Results 1 - 10 of about 266,000 for Polymorphism with primitive data types John ___

[fpc-pascal] Type confusion in GDB?

2005-11-15 Thread John Coppens
Hi all. I was debugging a program and found that the contents of an 'array of integer' was shown wrong... It took me quite a while to realize that GDB was showing 32-bit integers, while the pascal program was using 16-bit ones (at least think is happening): Assign 1 to firstcol[0]: (gdb) print f