Re: [fpc-pascal] why is there no port property in sqldb?

2007-09-17 Thread Joost van der Sluis
Op maandag 17-09-2007 om 09:31 uur [tijdzone +0700], schreef Bee:
> > Ah, now I see. Please don't use such an old version, as I told you
> > before. Next time, always mention your version. So we can tell you to
> > test the latest version, before we'll try to help you.
> 
> Sorry I forgot to mention the version I used. It is happened on sqldb using 
> tmysql50connection class on FPC 2.0.2, Ubuntu Feisty, mySQL 5.0.

;)

> I don't consider 2.0.2 as such an old version since v.2.2 is just released a 
> few days ago. Had sqlDB on FPC 2.2 have port property?

There's also fpc 2.0.4. The version you're using is really old.

For us it's important to know, even if 2.2.0 is brand new, since it
saves us time if we don't have to look for a bug which is already fixed
in a newer release.

Joost.

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


[fpc-pascal] Support Interfaces

2007-09-17 Thread Stephen Dickason
I'm new to the multi-OS programming environment and wondered if there was
some documentation on the different interface mechanisms used in FPC?

*---

This E-Mail may contain confidential and/or privileged information. It
is only intended for the use of the addressee indicated in this message.
If you are not an intended addressee of this email (or responsible for
delivery of the message to such person), the disclosure, copying or
delivering of the contents of this email to anyone else is strictly
prohibited and may be unlawful. If you receive this e-mail by mistake
destroy the message and please notify us immediately by e-mail,
[EMAIL PROTECTED]

Information or opinions in this message that do not relate to the
business of ELCB Information Services shall be treated as neither 
given or endorsed by it.


*---

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


Re: [fpc-pascal] Support Interfaces

2007-09-17 Thread Daniël Mantione


Op Mon, 17 Sep 2007, schreef Stephen Dickason:

> I'm new to the multi-OS programming environment and wondered if there was
> some documentation on the different interface mechanisms used in FPC?

Please elaborate. Interface as in the language feature regarding 
interfaces between classes? Or operating system interfaces, i.e. API?

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

RE: [fpc-pascal] Support Interfaces

2007-09-17 Thread Stephen Dickason
>> I'm new to the multi-OS programming environment and wondered if there was
>> some documentation on the different interface mechanisms used in FPC?
>Please elaborate. Interface as in the language feature regarding
>interfaces between classes? Or operating system interfaces, i.e. API?
>Daniël

Sorry, I think I'm having a slow Monday.
By interface mechanisms I meant: gtk, win api, gnome (???), etc.  Probably
any existing/external api.
There seem to be a lot that I haven't heard of yet and don't know which OSs
and architectures they work on etc.
One of the open source program problems I have is the amount of reading
required to understand what the program is supposed to do in a nut shell and
where it does it.
I am stuck with Windows XP and DG/UX unix for the moment, but want to move
into linux (which version and gui will be interesting - pointers would be
useful).
Stephen
*---

This E-Mail may contain confidential and/or privileged information. It
is only intended for the use of the addressee indicated in this message.
If you are not an intended addressee of this email (or responsible for
delivery of the message to such person), the disclosure, copying or
delivering of the contents of this email to anyone else is strictly
prohibited and may be unlawful. If you receive this e-mail by mistake
destroy the message and please notify us immediately by e-mail,
[EMAIL PROTECTED]

Information or opinions in this message that do not relate to the
business of ELCB Information Services shall be treated as neither 
given or endorsed by it.


*---

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


RE: [fpc-pascal] Support Interfaces

2007-09-17 Thread Daniël Mantione


Op Mon, 17 Sep 2007, schreef Stephen Dickason:

> >> I'm new to the multi-OS programming environment and wondered if there was
> >> some documentation on the different interface mechanisms used in FPC?
> >Please elaborate. Interface as in the language feature regarding
> >interfaces between classes? Or operating system interfaces, i.e. API?
> >Daniël
> 
> Sorry, I think I'm having a slow Monday.
> By interface mechanisms I meant: gtk, win api, gnome (???), etc.  Probably
> any existing/external api.
> There seem to be a lot that I haven't heard of yet and don't know which OSs
> and architectures they work on etc.

If you just want to start platform independend development I'd 
just use Lazarus with the LCL, and choose between gtk/win api etc. with 
the push of a button. The LCL is documented on the Lazarus web site and 
that is all you need to worry about.

If necessary, you can access gtk, win api etc. directly from Free Pascal, 
but you need to know how they work. You can find documentation on the GTK 
and Microsoft websites, this is not provided Free Pascal. If you are a 
beginner, don't worry about this, simply use the LCL.

> One of the open source program problems I have is the amount of reading
> required to understand what the program is supposed to do in a nut shell and
> where it does it.
> I am stuck with Windows XP and DG/UX unix for the moment, but want to move
> into linux (which version and gui will be interesting - pointers would be
> useful).
> Stephen

Lazarus should be perfect match for you. Simply install Lazarus, make a 
quick program (explains itself mostly), and see if it suits your needs.

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

Re: [fpc-pascal] Support Interfaces

2007-09-17 Thread Graeme Geldenhuys
On 17/09/2007, Stephen Dickason <[EMAIL PROTECTED]> wrote:
> I am stuck with Windows XP and DG/UX unix for the moment, but want to move
> into linux (which version and gui will be interesting - pointers would be
> useful).

An alternative to Lazarus's LCL is the fpGUI toolkit. I am actively
working on it. It's a more lightweight GUI toolkit talking directly to
the underlying windowing system and doesn't rely on any large 3rd
Party libraries, so deployment is a breeze.  See the link in my
signature for more details.  You can also download the latest release
from SourceForge.
  http://sourceforge.net/projects/fpgui/

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


[fpc-pascal] When is TComponent.Loaded called?

2007-09-17 Thread Graeme Geldenhuys
Hi,

As the subject says. When is TComponent.Loaded called?  I'm trying to
use it in fpGUI to initialize a few things in a component, but Loaded
never seems to execute.

Reading the Kylix 3 help, it says Loaded is called by the streaming
system that loads the 'form files'.  Well fpGUI doesn't use 'form
files' (like *.dfm or *.lfm). Instead the GUI Designer creates the
components via code in a normal *.pas unit, which is called after the
Form's constructor has completed.

I gather it is safe to assume the FCL never calls a TComponent's
Loaded method anywhere?



-- 
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] When is TComponent.Loaded called?

2007-09-17 Thread Michael Van Canneyt


On Mon, 17 Sep 2007, Graeme Geldenhuys wrote:

> Hi,
> 
> As the subject says. When is TComponent.Loaded called?  I'm trying to
> use it in fpGUI to initialize a few things in a component, but Loaded
> never seems to execute.
> 
> Reading the Kylix 3 help, it says Loaded is called by the streaming
> system that loads the 'form files'.  Well fpGUI doesn't use 'form
> files' (like *.dfm or *.lfm). Instead the GUI Designer creates the
> components via code in a normal *.pas unit, which is called after the
> Form's constructor has completed.
> 
> I gather it is safe to assume the FCL never calls a TComponent's
> Loaded method anywhere?

It is called in the streaming code, classes.inc in 
TReader.ReadRootComponent

It's used to perform certain actions which should only be done after 
all properties are loaded.

You should never call loaded directly (in fact, you can't since it is
protected).

The reason for it's presence is simple: you can't force the order of
loading properties. Suppose you have a dataset component: the active
property is one of the first to be set: none of the properties which
actually matter (SQL, Database etc) are set, so putting active to True would
raise an error. Therefore the action of setting 'Active' is deferred till 
the Loaded call: then the needed properties are normally all set.

When creating components in code, it's assumed that you set them in the
proper order prior to setting Active.

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


Re: [fpc-pascal] When is TComponent.Loaded called?

2007-09-17 Thread Graeme Geldenhuys
On 17/09/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
>
> When creating components in code, it's assumed that you set them in the
> proper order prior to setting Active.


That's what I figured it was used for. Thanks for the explanation.

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


[fpc-pascal] Client/Server file transfer

2007-09-17 Thread Stephen Dickason
I'm needing to create two programs, a client and a server that will take a
file via command line parameter, compress, encrypt and send it from one
computer to another (possibly over the Net) and decrypt, decompress and save
file in original form.  In Delphi I would probably use some of the ICS
components, but seem to have problems compiling.  It seems there is a socket
unit in FPC with examples, but I haven't managed to get the 2.0.4 version
working on my XP machine - doesn't seem to be firewall problem.  For now the
two programs don't need a GUI interface.  Reason I need to make the programs
is because ftp server is too insecure.  I'm busy trying to get the latest
versions of FPC to see if it works with them.

Any advice is welcome, thanks
Stephen
*---

This E-Mail may contain confidential and/or privileged information. It
is only intended for the use of the addressee indicated in this message.
If you are not an intended addressee of this email (or responsible for
delivery of the message to such person), the disclosure, copying or
delivering of the contents of this email to anyone else is strictly
prohibited and may be unlawful. If you receive this e-mail by mistake
destroy the message and please notify us immediately by e-mail,
[EMAIL PROTECTED]

Information or opinions in this message that do not relate to the
business of ELCB Information Services shall be treated as neither 
given or endorsed by it.


*---

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


Re: [fpc-pascal] Client/Server file transfer

2007-09-17 Thread Leonardo M. Ram
> Any advice is welcome, thanks
> Stephen

You can try Synapse Lib (synapse.ararat.cz).


Leonardo M. Ramé
http://leonardorame.blogspot.com


  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 

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


Re: [fpc-pascal] Client/Server file transfer

2007-09-17 Thread Stootch

Stephen Dickason wrote:


In Delphi I would probably use some of the ICS



There are ports of ICS and Indy for FPC, but AFAIK they work under 
Windows only. If you are familiar with ICS you can choose lNet (first 
letter is 'L'), especially if you plan to build GUI applications with 
Lazarus.


OR

You can look at Filezilla client and server. Those programs support SFTP 
and on-the-fly compression, though server is available for Windows only.

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


Re: [fpc-pascal] Client/Server file transfer

2007-09-17 Thread Marco van de Voort
> > In Delphi I would probably use some of the ICS
> 
> There are ports of ICS and Indy for FPC, but AFAIK they work under 
> Windows only.

The current version of Indy is available for most platforms, and works fine
with Lazarus.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal