Re: [fpc-pascal] Lazarus + Qt4 in FreeBSD

2008-01-02 Thread [EMAIL PROTECTED]
Forwarding...


de
[EMAIL PROTECTED] <[EMAIL PROTECTED]>

para
[EMAIL PROTECTED]
data
29/12/2007 20:30
assunto
Lazarus + Qt4 in FreeBSD

Hi,
I've just readed thread on fpc-pascal list, and seen your sse2 problem
with qt4.
I had same thing on linux (Fedora Core 3) and qt4.
Just recompile your qt4 libs with --no-sse and you'll get bingo ;)

cheers,
zeljan



2007/12/21, Den Jean <[EMAIL PROTECTED] >:
>
> On Friday 21 December 2007 03:06:32 am [EMAIL PROTECTED] wrote:
> > Den, you want screenshots? Then see...
>
> thanks
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2008-01-02 Thread Graeme Geldenhuys
Hi,

I've created a simple console application for Linux and Windows. It's
a port of older Win32 API code I wrote years ago.  All I'm trying to
do is dial a phone number and then later hang-up the phone.

I've got a external USRobotics Courier V.Everything V.90 X2 connected
to COM1 (/dev/ttyS0).  The modem works perfectly in 'minicom' (a modem
terminal application).  But for some reason I can't get anything out
of the modem using the serial.pp unit.  I can see the RD and SD lights
flicker briefly on the modem, but nothing else.

I even tried to simply take the modem off the hook (ATH1 command) and
even that doesn't work, but again in minicom it works fine.

Can anybody please look at the following code and tell me what I am
doing wrong.  Thanks in advance.

I'm using FPC 2.2.0 under Linux (Ubuntu 7.10) and Windows 2000.  I
made sure my user under Linux has access to the /dev/ttyS0 device. I
even tried to run it as root. No difference.

[ mydialer.pas ]-
program mydialer;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  ,serial;

var
  s: string;
  serialhandle: TSerialHandle;
  FNumberToDial: string;
  status: integer;

begin
  serialhandle := SerOpen('/dev/ttyS0');  // COM1 under Linux
//  SerSetParams(serialhandle, 2400, 8, NoneParity, 1, []);

  // construct dial string. X0 ignores dialtone.
  FNumberToDial := '123456789';
  s := 'ATX0DT' + FNumberToDial;

  writeln('DEBUG: string count: ', Length(s));
  status := SerWrite(serialhandle, s, Length(s));
  writeln('DEBUG: bytes written: ', status);

  if status = Length(s) then
  begin
write('Pick up the phone. ');
writeln('Press ENTER after dialing has completed.');

s := 'ATH0' + #13#10;
ReadLn;
status := SerWrite(serialhandle, s, Length(s));
  end
  else
  begin
writeln('Failed to dial the number');
  end;
  SerClose(serialhandle);
end.

[ end ]--



Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Michael Van Canneyt


On Wed, 2 Jan 2008, Graeme Geldenhuys wrote:

> Hi,
> 
> I've created a simple console application for Linux and Windows. It's
> a port of older Win32 API code I wrote years ago.  All I'm trying to
> do is dial a phone number and then later hang-up the phone.
> 
> I've got a external USRobotics Courier V.Everything V.90 X2 connected
> to COM1 (/dev/ttyS0).  The modem works perfectly in 'minicom' (a modem
> terminal application).  But for some reason I can't get anything out
> of the modem using the serial.pp unit.  I can see the RD and SD lights
> flicker briefly on the modem, but nothing else.

> begin
>   serialhandle := SerOpen('/dev/ttyS0');  // COM1 under Linux
> //  SerSetParams(serialhandle, 2400, 8, NoneParity, 1, []);

Shouldn't you set at least RtsCtsFlowControl ?
As far as I know, you must at least set some options, such as the baud rate
and so on, sersetparams seems to do most of the needed actions ?

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Graeme Geldenhuys
On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > begin
> >   serialhandle := SerOpen('/dev/ttyS0');  // COM1 under Linux
> > //  SerSetParams(serialhandle, 2400, 8, NoneParity, 1, []);
>
> Shouldn't you set at least RtsCtsFlowControl ?
> As far as I know, you must at least set some options, such as the baud rate
> and so on, sersetparams seems to do most of the needed actions ?


Even if I uncomment the 'SerSetParams(...)' line shown above, it makes
no difference.  :-(

I'm busy reading through the article mentioned below to try and see
what I'm doing wrong. So far I found no hints as to the cause of the
problem.  The article does mention a CR (#13) must be sent as the last
character in each command. I appended #13 to my dial string, but still
nothing.

  http://www.easysw.com/~mike/serial/serial.html


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Michael Van Canneyt


On Wed, 2 Jan 2008, Graeme Geldenhuys wrote:

> On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > begin
> > >   serialhandle := SerOpen('/dev/ttyS0');  // COM1 under Linux
> > > //  SerSetParams(serialhandle, 2400, 8, NoneParity, 1, []);
> >
> > Shouldn't you set at least RtsCtsFlowControl ?
> > As far as I know, you must at least set some options, such as the baud rate
> > and so on, sersetparams seems to do most of the needed actions ?
> 
> 
> Even if I uncomment the 'SerSetParams(...)' line shown above, it makes
> no difference.  :-(

Yes, but it should be

SerSetParams(serialhandle, 2400, 8, NoneParity, 1, [RtsCtsFlowControl]);

No ?

Also, 2400 baud seems very slow ?

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Frank McCormick
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 02 Jan 2008 15:49:47 +0200
Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:

> On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > begin
> > >   serialhandle := SerOpen('/dev/ttyS0');  // COM1 under Linux
> > > //  SerSetParams(serialhandle, 2400, 8, NoneParity, 1, []);
> >
> > Shouldn't you set at least RtsCtsFlowControl ?
> > As far as I know, you must at least set some options, such as the
> > baud rate and so on, sersetparams seems to do most of the needed
> > actions ?
> 
> 
> Even if I uncomment the 'SerSetParams(...)' line shown above, it makes
> no difference.  :-(


   What are the permissions on /dev/ttyS0 ? Have you tried running it
as root ?



- -- 
Cheers
Frank
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHe5rkzWG7ldLG6fIRAop1AJ9LpSzKnUTbs7remMdw2Onum9RTmgCgkc/q
uikrl+oEokCZMRQzMNezWpM=
=EcYK
-END PGP SIGNATURE-
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Graeme Geldenhuys
On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
>
> Yes, but it should be
>
> SerSetParams(serialhandle, 2400, 8, NoneParity, 1, [RtsCtsFlowControl]);
>
> No ?


I have no idea!  :-)

OK, I changed the code to the following...  I it should do, is take
the modem off the hook... nothing happens. :-(

-
  serialhandle := SerOpen('/dev/ttyS0');  // COM1 under Linux
  if serialhandle = -1 then
writeln('Failed to open port');
  SerSetParams(serialhandle, 2400, 8, NoneParity, 1, [RtsCtsFlowControl]);

  s := 'ATH1' + #13;
  SerWrite(serialhandle, s, Length(s));
-


> Also, 2400 baud seems very slow ?

That should not be a issue.  All that the code is supposed to do is
dial the phone, nothing else (hence the reason I didn't even bother
with the SerSetParams call in the beginning). The end result should
allow the user to click a button next to a phone number and the modem
dials the number for the user. No other communication happens.
Anyway, I tried 19200 speed as well, but as expected, no change.  This
has been driving me insane for a few days now. Grey hairs popping up
all over the place! :-)


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Graeme Geldenhuys
On 02/01/2008, Frank McCormick <[EMAIL PROTECTED]> wrote:
>
>What are the permissions on /dev/ttyS0 ? Have you tried running it
> as root ?

The first thing I checked!  The user is part of the 'dialout' group
which has access to the modem. 'minicom' was a test of this and works.
 I also ran my program under root, but still no change.


Does anybody have Linux and a modem to give the application a try?
This should eliminate a PC specific issue, but then again 'minicom'
works just fine on my computer.

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 that be the
reason?

How is your minicom configed? 

John
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Marco van de Voort
> On 02/01/2008, Frank McCormick <[EMAIL PROTECTED]> wrote:
> >
> >What are the permissions on /dev/ttyS0 ? Have you tried running it
> > as root ?
> 
> The first thing I checked!  The user is part of the 'dialout' group
> which has access to the modem. 'minicom' was a test of this and works.
>  I also ran my program under root, but still no change.
> 
> Does anybody have Linux and a modem to give the application a try?
> This should eliminate a PC specific issue, but then again 'minicom'
> works just fine on my computer.

Note that there is a serial related bug in Mantis, with respect to setting
baudrates. 

I'm waiting till I have a serial device to test. (must have a cable soldered
at work first)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Bernd Mueller

Graeme Geldenhuys wrote:


  SerWrite(serialhandle, s, Length(s));


SerWrite(serialhandle, s[1], Length(s));

Regards, Bernd.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Graeme Geldenhuys
On 02/01/2008, John Coppens <[EMAIL PROTECTED]> wrote:
>
> I seem to recall (vaguely) that modem comms were (by default) Even
> parity, and 7 bits. Can't recall default speed though. Could that be the
> reason?

>From my days of running a BBS, before the Internet, it was 99% of the
time 8N1.  When I startup minicom it also sets the modem to 115200 &
8N1.  But as I mentioned, all I want to do is dial the phone with the
modem. The speed should be irrelevant for that (I think).


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Michael Van Canneyt


On Wed, 2 Jan 2008, Bernd Mueller wrote:

> Graeme Geldenhuys wrote:
> 
> >   SerWrite(serialhandle, s, Length(s));
> 
> SerWrite(serialhandle, s[1], Length(s));

Duh ! We all should have spotted that one !! :(

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Graeme Geldenhuys
On 02/01/2008, Bernd Mueller <[EMAIL PROTECTED]> wrote:
> Graeme Geldenhuys wrote:
>
> >   SerWrite(serialhandle, s, Length(s));
>
> SerWrite(serialhandle, s[1], Length(s));


Uh, it works!!!   Thanks a million Bernd.  If you ever come to South
Africa, look me up, I owe you a beer.  :)


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Graeme Geldenhuys
On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> >
> > SerWrite(serialhandle, s[1], Length(s));
>
> Duh ! We all should have spotted that one !! :(


Tell me about it!!

Thanks again to everybody that tried to help.  I have a few extra grey
hairs, but I'll live. ;-)


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Graeme Geldenhuys
On 02/01/2008, Marco van de Voort <[EMAIL PROTECTED]> wrote:
>
> I'm waiting till I have a serial device to test. (must have a cable soldered
> at work first)

I had to search for my cable and Courier modem in the attic!  :)   [I
still remember paying a small fortune for the damn modem - years ago]


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2008-01-02 Thread Bernd Mueller

Graeme Geldenhuys wrote:

Uh, it works!!!   Thanks a million Bernd.  If you ever come to South
Africa, look me up, I owe you a beer.  :)


thanks four your invitation, unfortunately I am not living around the 
corner (Germany). So don't expect me in the next couple of days ;-))


Regards, Bernd.


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Anthony W. Henry
I recently responded to a question on the community board
asking about an fpc book by recommending a Turbo Pascal
book by Jeff Duntemann.  His book started me out as a Pascal
programmer in 1989 and I still find these old books useful from
time to time.  

   I have two by him:
Turbo Pascal from Square One 
The Complete Borland Pascal

  Mr. Duntemann has also written other programming books and
was employed by Borland for a while as a technical writer.  I have
found his books to be the best available for learning Pascal.  

  When I responded to the board question it started a train of 
thought that resulted me in contacting Mr. Duntemann about writing
a book on FPC.   To my (pleased) surprise I found him provisionally
enthusiastic for the project.(He hasn't made his mind up yet). 

He has the following questions for the community. 
POSTED WITH HIS PERMISSION.

1. What OS is most-used for Free Pascal? Windows? Linux?

2. What libraries do most people use for console (i.e.,
"terminal" or text-mode) apps? I dislike ncurses; is
there a better way?

3. Does anybody really use Free Pascal to write Win32
apps?

4. Do people make heavy use of Free Pascal objects?

These are important questions, because I want to bring
newcomers up to speed with the tools and OSes they're
most likely to use as they get better.

I will probably release the rewritten book as a free
ebook, and offer printed copies of the book through
Lulu.com, where I publish a number of other things now.
See:

http://www.lulu.com/copperwood

I don't expect to make much money on the project; I made
my money on the book back in 1993 when it was first run.
I love Pascal and would like to see my book still
available to Pascal people.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Anthony W. Henry
I missed one. Mr. Duntemann closed with this question:

What forum would be best for me to join to discuss how to rewrite the
book for FP?


Anthony


On Wed, 2008-01-02 at 12:35 -0500, Anthony W. Henry wrote:
> I recently responded to a question on the community board
> asking about an fpc book by recommending a Turbo Pascal
> book by Jeff Duntemann.  His book started me out as a Pascal
> programmer in 1989 and I still find these old books useful from
> time to time.  
> 
>I have two by him:
> Turbo Pascal from Square One 
> The Complete Borland Pascal
> 
>   Mr. Duntemann has also written other programming books and
> was employed by Borland for a while as a technical writer.  I have
> found his books to be the best available for learning Pascal.  
> 
>   When I responded to the board question it started a train of 
> thought that resulted me in contacting Mr. Duntemann about writing
> a book on FPC.   To my (pleased) surprise I found him provisionally
> enthusiastic for the project.(He hasn't made his mind up yet). 
> 
> He has the following questions for the community. 
> POSTED WITH HIS PERMISSION.
> 
> 1. What OS is most-used for Free Pascal? Windows? Linux?
> 
> 2. What libraries do most people use for console (i.e.,
> "terminal" or text-mode) apps? I dislike ncurses; is
> there a better way?
> 
> 3. Does anybody really use Free Pascal to write Win32
> apps?
> 
> 4. Do people make heavy use of Free Pascal objects?
> 
> These are important questions, because I want to bring
> newcomers up to speed with the tools and OSes they're
> most likely to use as they get better.
> 
> I will probably release the rewritten book as a free
> ebook, and offer printed copies of the book through
> Lulu.com, where I publish a number of other things now.
> See:
> 
> http://www.lulu.com/copperwood
> 
> I don't expect to make much money on the project; I made
> my money on the book back in 1993 when it was first run.
> I love Pascal and would like to see my book still
> available to Pascal people.
> 
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Bee
He has the following questions for the community. 


Since I feel as being part of the community, I'd like to answer. :)


1. What OS is most-used for Free Pascal? Windows? Linux?


For me... 80% Linux, 20% Windows, 0% MacOS. But this will change if I 
got a MacBook, perhaps I'll have 20% usage on this OS. :-D



2. What libraries do most people use for console (i.e.,
"terminal" or text-mode) apps? I dislike ncurses; is
there a better way?


For console app, I used basic CRT unit provided by FPC.


3. Does anybody really use Free Pascal to write Win32
apps?


I do. I never wrote console app on win32 using fpc, but I wrote some GUI 
apps on win32 using Lazarus which is powered by fpc. ;)



4. Do people make heavy use of Free Pascal objects?


Does 'objects' here refer to object oriented programming or refer to 
TP's style class? If it means OOP, then I do make heavy use of OOP in 
FPC, especially the FCL. It it means the last, then I no longer touch 
this object paradigm since I used Delphi. ;)



These are important questions, because I want to bring
newcomers up to speed with the tools and OSes they're
most likely to use as they get better.


Hope this would help. :)

-Bee-

has Bee.ography at:
http://beeography.wordpress.com

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Bee

What forum would be best for me to join to discuss how to rewrite the
book for FP?


This list, no? :-D

-Bee-

has Bee.ography at:
http://beeography.wordpress.com

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Anthony W. Henry

On Thu, 2008-01-03 at 01:17 +0700, Bee wrote:
> > What forum would be best for me to join to discuss how to rewrite the
> > book for FP?
> 
> This list, no? :-D
> 
> -Bee-

   I suggested this too.  This is all really fast (just a couple of
days) and he is not making a commitment yet.  I don't want to scare him
off :).


Thanks for your answers.  I'm going to wait until I get a few more
before forwarding them to Mr. Duntemann. 

Anthony

> 
> has Bee.ography at:
> http://beeography.wordpress.com
> 
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Michael Van Canneyt


On Wed, 2 Jan 2008, Anthony W. Henry wrote:

> I recently responded to a question on the community board
> asking about an fpc book by recommending a Turbo Pascal
> book by Jeff Duntemann.  His book started me out as a Pascal
> programmer in 1989 and I still find these old books useful from
> time to time.  
> 
>I have two by him:
> Turbo Pascal from Square One 
> The Complete Borland Pascal
> 
>   Mr. Duntemann has also written other programming books and
> was employed by Borland for a while as a technical writer.  I have
> found his books to be the best available for learning Pascal.  
> 
>   When I responded to the board question it started a train of 
> thought that resulted me in contacting Mr. Duntemann about writing
> a book on FPC.   To my (pleased) surprise I found him provisionally
> enthusiastic for the project.(He hasn't made his mind up yet). 
> 
> He has the following questions for the community. 
> POSTED WITH HIS PERMISSION.
> 
> 1. What OS is most-used for Free Pascal? Windows? Linux?

If I remember the download statistics correctly:
Windows comes first and then Linux.

> 
> 2. What libraries do most people use for console (i.e.,
> "terminal" or text-mode) apps? I dislike ncurses; is
> there a better way?

You can use crt or the video unit provided by FPC.
You have Free Vision, the Free Pascal port of the old turbo vision.

> 
> 3. Does anybody really use Free Pascal to write Win32
> apps?

Sure. Some people use it to create their flagship applications.

 
> 4. Do people make heavy use of Free Pascal objects?

I think this depends on the definition of objects: 
The Old TP-Style: probably not any more, or very limited at any rate.
The new Delphi style: Yes, it is heavily used.

As for information: he can always join this list or the lazarus list.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Johann Glaser
Hi!

> > 1. What OS is most-used for Free Pascal? Windows? Linux?
> 
> If I remember the download statistics correctly:
> Windows comes first and then Linux.

I want to note that mostly all Windows users download FreePascal and
Lazarus by their own from the original download servers. OTOH many Linux
users get FreePascal via their distribution. At least Debian provides
packages, but I assume some other distributions too.

So it all is about the "invisible" Linux downloaders. Do they really
exist? Or do they update so regularly that they don't want to rely on
their distribution?

Bye
  Hansi


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Graeme Geldenhuys
>
> 1. What OS is most-used for Free Pascal? Windows? Linux?

We (our company) mainly develop under Linux, but all products are for
both Linux and Windows platforms.

> 2. What libraries do most people use for console (i.e.,
> "terminal" or text-mode) apps? I dislike ncurses; is
> there a better way?

I only write small console based utility apps.  Mainly for debuging or
prototyping some concept. writeln() is my friend. :)


> 3. Does anybody really use Free Pascal to write Win32
> apps?

Linux and Windows are equally important to us for GUI apps.  Though we
(our company) are having more and more talks about phasing our
franchises over to Linux.  Stability, money and no viruses are the
main reasons.


> 4. Do people make heavy use of Free Pascal objects?

If that referres to classes as in OOP then YES.

> I will probably release the rewritten book as a free
> ebook, and offer printed copies of the book through

That would be awesome...


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Graeme Geldenhuys
On 02/01/2008, Johann Glaser <[EMAIL PROTECTED]> wrote:
>
> So it all is about the "invisible" Linux downloaders.

I agree...plus the Linux downloads are split into lots of small
packages, were the Windows download is one file.  This is also what
drives me mad about companies publishing the populaty of OSes based on
sales or whatever else (I mention no names.. :)  ).  Linux has a huge
"invisible" community because we are allowed to distribute copies
legally and get them from all over the internet without payment.
Windows OS copies are much easier to track because they have to be
bought and registered.

I'm going a bit off-topic here, sorry.  But again, Linux users can now
get copies via 'apt'.  Then what about the loads of people using 'svn'
to keep up to date.  I think I've only downloaded one copy of FPC for
Windows and Linux, but have been keeping up to date via svn for the
last 3 years.  I don't think we will every be able to give a accurate
count per OS.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread DONALD PEDDER

   Coming out of lurk mode...


1. What OS is most-used for Free Pascal? Windows? Linux?


   Well, speaking just for myself, :-) I'm still using DR-DOS (I have 
Windows as well, but not by choice. Grrr - the punitive measures in the 
anti-trust case didn't go far enough! I don't buy software unless I have 
no choice. e.g. I have written my own programs for budgetting, stats, 
etc.). Eventually I want to make some of my programs multi-platform, but 
it would still be command-line based rather than windows based (graphics 
just slows everything up, so unless needed... "a picture is worth a 
thousand words, but it takes 10,000 times the memory").



2. What libraries do most people use for console (i.e., "terminal" or 
text-mode) apps? I dislike ncurses; is there a better way?


   CRT and strings, and that's about it.



3. Does anybody really use Free Pascal to write Win32 apps?


   Not specifically, but I try to make my DOS programs work in Windows as 
well (not easy, given how much MS crippled their version of DOS - at least 
one program I gave up on keeping it Windows compatible, though in future I 
might make use of some multi-platform system units to help this project. 
Have to face facts that most people use Windows, even if it's a really 
crappy OS :-\ ).




4. Do people make heavy use of Free Pascal objects?


   Nope, but if it was covered in a book I might be more inclined to do 
so.


   It would be good to have a more up-to-date Pascal book (there are 
features in FPC which aren't in my old Pascal books. e.g. OO, strings, 
passing filenames as parameters, etc.) - I'd buy a printed copy (or an 
E-copy I could print).



thanks,
   DONALD.

BIG DON's Home-page  - http://jedi.apana.org.au/~jims_son
Pedder Passer Rating - http://jedi.apana.org.au/~jims_son/PPR
AusNFL mailing-list  - http://jedi.apana.org.au/mailman/listinfo/ausnfl

"What I always wanted is to be accepted, not understood" - MAN RAY
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Daniël Mantione



Op Wed, 2 Jan 2008, schreef Graeme Geldenhuys:


On 02/01/2008, Johann Glaser <[EMAIL PROTECTED]> wrote:


So it all is about the "invisible" Linux downloaders.


I agree...plus the Linux downloads are split into lots of small
packages, were the Windows download is one file.


I have the impression the amount of Windows users is still significantly 
bigger than the amount of Linux users. However, Linux users are more 
active in the community.


A good book targets both groups of users and teaches users to use
{$ifdef windows}/{$ifdef unix} where needed.

Daniël___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Daniël Mantione



Op Wed, 2 Jan 2008, schreef Michael Van Canneyt:


2. What libraries do most people use for console (i.e.,
"terminal" or text-mode) apps? I dislike ncurses; is
there a better way?


You can use crt or the video unit provided by FPC.
You have Free Vision, the Free Pascal port of the old turbo vision.


Perhaps it is usefull to node him the use cases in which you would choose 
what API:

* Simple text mode programming: crt
* Advanced textmode UIs: Free Vision
* Maximum flexibility: Video & keyboard units

Ncurses could be used as "the unix way", but is rather primitive 
compared to FV.



3. Does anybody really use Free Pascal to write Win32
apps?


Sure. Some people use it to create their flagship applications.


Indeed, but there are three categories of Win32 programs that are popular:
* LCL applications, coded through Lazarus
* Games, often using JEDI-SDL and OpenGL
* Win32 command line applications

Users from each group might be interrested to learn different things... 
Users that don't belong to these groups do of course also exist.


Daniël___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Maybe a new fpc book :)

2008-01-02 Thread Milan Marusinec

Hello,

4. Do people make heavy use of Free Pascal objects?

  


I will answer this question in the sence of meaning the object as a type 
for OOP.


Recently in my two pascal projects, which by the way are relatively very 
current,

I used only "objects" and not "classes". You can find those projects here:
 http://www.aggpas.org (Vector Graphics Engine, native port)
 http://www.icu4pas.org (Unicode I18N library, direct class wrapper)

Every delphi programmer would wonder why the hell to use that archaic
type, which is marked as "obsolete" in Borland documentation. But it has
a very strong technical background argument in simple fact, and that is
impossibility to allocate classes on the stack, because classes are always
allocated on the Heap. Here again delphi programmer would very very
wonder, why one would want to allocate classes on the Stack ? Answer is that
those two project are direct 1:1 ports from C/C++, where classes technically
can be on Stack and also on the Heap, and to mimic this behaviour is 
possible

only when using "object" types and not "classes".

That's my two cents
Milano

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread tazio mirandola
i'm a delphi programmer and a FP beginner, it completly lacks good
books focusing on FP and LCL, the book i'm looking for:

> 1. What OS is most-used for Free Pascal? Windows? Linux?

mostly windows, but linux and osx are important too, crossplatform
tricks are welcome.
consider FP being cross platform is a main advantage over delphi and .net

>
> 2. What libraries do most people use for console (i.e.,
> "terminal" or text-mode) apps?

writeln is enough for simple personal tools, but in 2008 is hard to
sell a text-mode app, so this is not the killer library nowadays while
internet and database lib are more important for modern real projects

> 3. Does anybody really use Free Pascal to write Win32
> apps?

absolutely yes, the vision behind lazarus is to replace Delphi

> 4. Do people make heavy use of Free Pascal objects?

absolutely yes, patterns and algorithms are interesting too.

a question about the odience:
should this book be for totally beginners or for (somehow) experienced
programmers coming from others environments?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal