Re: [fpc-pascal] RE: Get Local IP using glib (eth0,eth1)

2006-10-05 Thread Micha Nelissen
Jeff Pohlmeyer wrote: >> > function to read the local IP eth0/eth1 using glibc library. > > This one is a little cleaner... > > program ip_addr; > {$MODE OBJFPC} > > uses libc; It doesn't seem like you're using libc specific functions ? You can also write a fpc 'native' one using fpsocket and f

[fpc-pascal] RE: h2pas error report

2006-10-05 Thread Jeff Pohlmeyer
Errm, I actually forgot the obvious questions: What's wrong here? How can I get around it? cat input.h | awk '{gsub(/\<__int64\>/," long long "); print}' > output.h - should work, at least on Linux x86 - Jeff ___ fpc-pascal maillist - fpc-pasca

[fpc-pascal] RE: Get Local IP using glib (eth0,eth1)

2006-10-05 Thread Jeff Pohlmeyer
> function to read the local IP eth0/eth1 using glibc library. program ip_addr; ... end. Please ignore my last post - This one is a little cleaner... program ip_addr; {$MODE OBJFPC} uses libc; function GetIPAddressOfInterface( if_name:ansistring):ansistring; var ifr : ifreq; sock : lo

[fpc-pascal] RE: Get Local IP using glib (eth0,eth1)

2006-10-05 Thread Jeff Pohlmeyer
I'm trying to write a function to read the local IP eth0/eth1 using glibc library... program ip_addr; {$MODE OBJFPC} uses libc; const IP_NAMESIZE = 16; type ipstr = array[0..IP_NAMESIZE-1] of char; function GetIPAddressOfInterface( if_name:ansistring):ansistring; var ifr : ifreq; tmp:ips

[fpc-pascal] Re: h2pas error report

2006-10-05 Thread Marc Santhoff
Am Donnerstag, den 05.10.2006, 23:15 +0200 schrieb Marc Santhoff: > Hi, > > h2pas does crash on the following lines: > > > typedef unsigned __int64 hsize_t; > typedef signed __int64hssize_t; > > > Command line and error message: > > h2pas -d -l "hdf5" -p -o hdf5.cpped.nos

[fpc-pascal] h2pas error report

2006-10-05 Thread Marc Santhoff
Hi, h2pas does crash on the following lines: typedef unsigned __int64hsize_t; typedef signed __int64 hssize_t; Command line and error message: h2pas -d -l "hdf5" -p -o hdf5.cpped.nostdinc.pas hdf5.h.nostdinc at line 317 error : syntax error Runtime error 216 at $080631DE $0

Re: [fpc-pascal] .NET FAQ

2006-10-05 Thread Marco van de Voort
> On 5 okt 2006, at 19:56, Marco van de Voort wrote: > > > But we can cut this discussion short. I'd _LOVE_ to see FPC run on > > bytecode. > > If you find such a compiler, compile the compiler with it ( :-) ) > > Since FPC is written in the FPC dialect, probably the only thing that > will ev

Re: [fpc-pascal] .NET FAQ

2006-10-05 Thread Jonas Maebe
On 5 okt 2006, at 19:56, Marco van de Voort wrote: But we can cut this discussion short. I'd _LOVE_ to see FPC run on bytecode. If you find such a compiler, compile the compiler with it ( :-) ) Since FPC is written in the FPC dialect, probably the only thing that will ever compile it is F

Re: [fpc-pascal] .NET FAQ

2006-10-05 Thread Marco van de Voort
> For future reference, someone sent me a link of a commercial pascal > compiler that generates java bytecode: > > http://www.mhccorp.com/pascal.html > > It claims to be compatible with Delphi 2 (not sure if it supports VCL) > and targets J2SE. Canterbury yes, pretty wellknown. Quite OK, but now

[fpc-pascal] Get Local IP using glib (eth0,eth1)

2006-10-05 Thread TOUZEAU DAVID
Hi I'm trying to write a function to read the local IP eth0/eth1... using glibc library... I found only examples that found the 127.0.0.1 IP but not the real IP : http://community.freepascal.org:1/bboards/message?message_id=233776&forum_id=24083 http://lists.freepascal.org/lists/fpc-pasca

[fpc-pascal] How to debug when accessing database with sqldb

2006-10-05 Thread Adrian Maier
Hello, I'm using Sqldb to access a PostgreSQL database. Is it possible to find out what sql commands is sqldb generating and trying to execute ? I have a Lazarus form that contains a DBgrid which is associated to a table. After updating a row and executing query.ApplyUpdates , the program gen

[fpc-pascal] connecting to firebird with sqldb

2006-10-05 Thread Adrian Maier
Hello, I'm trying to run one of the sqldb examples against a firebird database (by accessing the database file directly, with no server). What should I write in database.ini so that the programs can connect ? type=interbase name=/tmp/db_faf.fdb user= password= hostname= It says "unable to comp

Re: [fpc-pascal] How to report a bug?

2006-10-05 Thread Michael Van Canneyt
On Thu, 5 Oct 2006, Rainer Stratmann wrote: > What do I have (exactly) to do to report a bug. > Which Button do I have to press at the website? > The Webseite is not Working with Konqueror, but with Mozilla. Strange, because I use Konqueror to access the website. On the main website, press 'Bu

[fpc-pascal] How to report a bug?

2006-10-05 Thread Rainer Stratmann
What do I have (exactly) to do to report a bug. Which Button do I have to press at the website? The Webseite is not Working with Konqueror, but with Mozilla. Rainer ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/ma