Re: [fpc-pascal]TCP client required... List still active??

2003-10-06 Thread Michael Van Canneyt


On Mon, 6 Oct 2003, George Patterson wrote:

>
> Sorry about the noise but is this list active??
>
> I am trying to write a simple tcp/ip client but can not find anything
> in the 'net (using Google anyway). I did find a server code in the fpc
> archives but no clients. (This could be a good demo, perhaps with code
> that would set text revived from one ip address to the others like a
> simple talker room.)
>
> The client will connect to the server and retreive values (similar to
> snmp) and act upon them ie modifying other values or performing action
> via USB(ignore the USB aspect for the purpose of discussion.)
>
> Even just some pointers on chnaging the server code into a client.

The pfinger example that comes with the inet unit or the
netdb unit give code for clients.

If you want more extensive functionality, the synapse package
(I think it is in the contributed units list) gives a full set of TCP/IP
components. It works with FPC.

Michael.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]TCP client required... List still active??

2003-10-06 Thread Lukas Gebauer

Take a look to my Synapse...  ;-)

> I am trying to write a simple tcp/ip client but can not find anything
> in the 'net (using Google anyway). I did find a server code in the fpc
> archives but no clients. (This could be a good demo, perhaps with code
> that would set text revived from one ip address to the others like a
> simple talker room.)
> 
> The client will connect to the server and retreive values (similar to
> snmp) and act upon them ie modifying other values or performing action
> via USB(ignore the USB aspect for the purpose of discussion.)


-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib.


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal]GTK problem

2003-10-06 Thread Peter Huesser
Hello

I am just learning gtk and try to translate the examples in the "GTK+2.0 Tutorial" from Tony Gale and Ian Main to fpc. In chapter 7 there is a simple button example which uses the "gtk_image_new_from_file" function to load a xpm file. This function is included in the gtk2 release but fpc does not find it. I guess the gtk interface from fpc is not up to date with the newer releases of gtk (I am using fpc version 1.0.10). Is this correct ? If yes what release does fpc relay on and are there any plans to make the newer gtk features available ?

Thank's for any help

	Pedro



___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]GTK problem

2003-10-06 Thread Marco van de Voort
> Hello
> 
> I am just learning gtk and try to translate the examples in the "GTK+2.0
>Tutorial" from Tony Gale and Ian Main to fpc. In chapter 7 there is a simple
>button example which uses the "gtk_image_new_from_file" function to load a
>xpm file. This function is included in the gtk2 release but fpc does not
>find it. I guess the gtk interface from fpc is not up to date with the newer
>releases of gtk (I am using fpc version 1.0.10). Is this correct ? If yes
>what release does fpc relay on and are there any plans to make the newer gtk
>features available ?

Yes. FPC uses GTK 1.2, also because that is still the prime target of
Lazarus.

Lazarus (lazarus.freepascal.org) is migrating to GTK2 however. Most GTK
experts are on the lazarus maillists.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]GTK problem

2003-10-06 Thread Michael Van Canneyt


On Mon, 6 Oct 2003, Peter Huesser wrote:

> Hello
>
> I am just learning gtk and try to translate the examples in the "GTK+2.0 Tutorial" 
> from Tony Gale and Ian Main to fpc. In chapter 7 there is a simple button example 
> which uses the "gtk_image_new_from_file" function to load a xpm file. This function 
> is included in the gtk2 release but fpc does not find it. I guess the gtk interface 
> from fpc is not up to date with the newer releases of gtk (I am using fpc version 
> 1.0.10). Is this correct ? If yes what release does fpc relay on and are there any 
> plans to make the newer gtk features available ?

The gtk units provided by FPC are for version 1.X of GTK only.

The GTK 2 units are hosted on Sourceforge.
http://sourceforge.net/projects/gtk2forpascal/


Michael.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal]GTK problem

2003-10-06 Thread Vincent Snijders


> -Oorspronkelijk bericht-
> Van: Peter Huesser [mailto:[EMAIL PROTECTED]
> Hello
> 
> I am just learning gtk and try to translate the examples in the
"GTK+2.0
> Tutorial" from Tony Gale and Ian Main to fpc. In chapter 7 there is a
> simple button example which uses the "gtk_image_new_from_file"
function to
> load a xpm file. This function is included in the gtk2 release but fpc
> does not find it. I guess the gtk interface from fpc is not up to date
> with the newer releases of gtk (I am using fpc version 1.0.10). Is
this
> correct ? If yes what release does fpc relay on and are there any
plans to
> make the newer gtk features available?

You should probably use the gtk2 for pascal units, which can be found at
http://gtk2forpascal.sourceforge.net/, instead of the gtk units that
came with fpc 1.0.10. Those units are for gtk 1.2.

Regards,
Vincent Snijders.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]TCP client required... List still active??

2003-10-06 Thread George Patterson
On Mon, 06 Oct 2003 09:49:30 +0200
"Lukas Gebauer" <[EMAIL PROTECTED]> wrote:

> 
> Take a look to my Synapse...  ;-)
> 
> > I am trying to write a simple tcp/ip client but can not find
> > anything in the 'net (using Google anyway). I did find a server code
> > in the fpc archives but no clients. (This could be a good demo,
> > perhaps with code that would set text revived from one ip address to
> > the others like a simple talker room.)
> > 
> > The client will connect to the server and retreive values (similar
> > to snmp) and act upon them ie modifying other values or performing
> > action via USB(ignore the USB aspect for the purpose of discussion.)
> 

Okay... I think I understand the code examples/demo that come with
Synapse. But where do I copy the library on a FreeBSD box.

Thanks for the newbie help.

George




___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]TCP client required... List still active??

2003-10-06 Thread George Patterson
On Mon, 6 Oct 2003 09:08:27 +0200 (W. Europe Daylight Time)
Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> 
> 
> The pfinger example that comes with the inet unit or the
> netdb unit give code for clients.
> 

I tried compiling pfinger and it wouldn't work. Gave up...
Just tried it and realised that finger on this machine was running on
port 1079. I changed the code to reflect the IP port chnage and it
works. :-D

> If you want more extensive functionality, the synapse package
> (I think it is in the contributed units list) gives a full set of
> TCP/IP components. It works with FPC.
> 

Reading through the pfinger source, the simple I/O of inet will suffice
for this working concept.

Considering it have been 12 years since I did any pascal programming,
I'm finding it straight forward, if a little wobbly

Thanks all...


George Patterson

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]GTK problem

2003-10-06 Thread Peter Huesser


You should probably use the gtk2 for pascal units, which can be found at
http://gtk2forpascal.sourceforge.net/, instead of the gtk units that
came with fpc 1.0.10. Those units are for gtk 1.2.
Thank's a lot

   Pedro



___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal]MySQL 4.0 Files

2003-10-06 Thread Johann Glaser
Hi!

Some months ago I developed a program using MySQL as backend database.
This was MySQL 4.0 and therefore I used the MySQL 4.0 units. They have
been stored in /usr/lib/fpc/1.0.6/units/linux/mysql/ver40/. This was
with FPC 1.0.6.

Since then I updated to FPC 1.0.10. This doesn't bring these files any
more. Why is this and what do you suggest to use MySQL 4.0 with FPC
1.0.10?

Thanks
  Hansi

-- 
Johann Glaser   <[EMAIL PROTECTED]>
   Vienna University of Technology
   Electrical Engineering 
 http://www.johann-glaser.at/ 


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]MySQL 4.0 Files

2003-10-06 Thread Michael Van Canneyt


On Mon, 6 Oct 2003, Johann Glaser wrote:

> Hi!
>
> Some months ago I developed a program using MySQL as backend database.
> This was MySQL 4.0 and therefore I used the MySQL 4.0 units. They have
> been stored in /usr/lib/fpc/1.0.6/units/linux/mysql/ver40/. This was
> with FPC 1.0.6.
>
> Since then I updated to FPC 1.0.10. This doesn't bring these files any
> more.

It does. I didn't test the source package, but the CVS repository
definitely contains the 4.0 units.

> Why is this and what do you suggest to use MySQL 4.0 with FPC
> 1.0.10?

Please try CVS first.

Michael.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]MySQL 4.0 Files

2003-10-06 Thread Johann Glaser
Hi!

> > Since then I updated to FPC 1.0.10. This doesn't bring these files any
> > more.
> 
> It does. I didn't test the source package, but the CVS repository
> definitely contains the 4.0 units.

Seems that they are forgotten in the fp-units-db Debian package.

Is it intended that the MySQL 4.0 binding is available in binary-only
distributions (.rpm, .deb, .tar.gz)? If yes then I'll write an EMail to
the .deb maintainer.

Bye
  Hansi

-- 
Johann Glaser   <[EMAIL PROTECTED]>
   Vienna University of Technology
   Electrical Engineering 
 http://www.johann-glaser.at/ 


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]MySQL 4.0 Files

2003-10-06 Thread Michael Van Canneyt


On Mon, 6 Oct 2003, Johann Glaser wrote:

> Hi!
>
> > > Since then I updated to FPC 1.0.10. This doesn't bring these files any
> > > more.
> >
> > It does. I didn't test the source package, but the CVS repository
> > definitely contains the 4.0 units.
>
> Seems that they are forgotten in the fp-units-db Debian package.
>
> Is it intended that the MySQL 4.0 binding is available in binary-only
> distributions (.rpm, .deb, .tar.gz)? If yes then I'll write an EMail to
> the .deb maintainer.

They are available in source form only, not in binary form.

Michael.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]MySQL 4.0 Files

2003-10-06 Thread Johann Glaser
Hi!

> They are available in source form only, not in binary form.

Ah, I see. That is why they are not in my .debs.

Why aren't they distributed in compiled form too?

Bye
  Hansi

-- 
Johann Glaser   <[EMAIL PROTECTED]>
   Vienna University of Technology
   Electrical Engineering 
 http://www.johann-glaser.at/ 


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal]Hidding private fields in a class

2003-10-06 Thread Adam Victor Brandizzi
Is there a way to hide the private class fields
from the rest of this unit? Something like a
compiler directive? Or is there some plan to do
it? I'm a newbie and there's a great probability
about I'm speaking something wrong, but I need to
try :)

Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]MySQL 4.0 Files

2003-10-06 Thread Michael Van Canneyt


On Mon, 6 Oct 2003, Johann Glaser wrote:

> Hi!
>
> > They are available in source form only, not in binary form.
>
> Ah, I see. That is why they are not in my .debs.
>
> Why aren't they distributed in compiled form too?

Because they have the same name as the 3.23 files. You can only have 1
binary copy at a given time - unless you want to start juggling with
compiler search paths all the time.

In general I don't recommend using MySQL in FPC. The API fluctuates
too much between minor versions, which can maybe be masked in C
with some macros, but not in FPC.

Michael.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal