[fpc-pascal] Re: help: converting windows API to linux

2008-04-11 Thread Guillermo Martínez Jiménez
May be you can use the Wine library. It is a library created to help porting applications from Windows to *NIX. Visit www.winehq.org Regards. Ñuño Martínez. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-11 Thread Tom York
On Wed, Apr 9, 2008 at 5:53 AM, Codebue Fabio - P-Soft [EMAIL PROTECTED] wrote: Take a look to a new Firebird 2.1 next month and probably you will change your idea about it... UDF: FreeAdHocUDF, a lot of internal SQL function... and if you wanna a good book www.ibphoenix.com Helen Borrie

[fpc-pascal] Installing fpc 2.2.0 deb packages

2008-04-11 Thread syraxes
Hello, Are there better ways to install fpc 2.2.0 on ubuntu besides downloading ~15 debs from sourceforge ? I'm thinking that it would be much more convenient to have all those debs packaged into a single tar . Or maybe there is some deb repository available ? Thanks, Adrian Maier

Re: [fpc-pascal] Installing fpc 2.2.0 deb packages

2008-04-11 Thread Vincent Snijders
[EMAIL PROTECTED] schreef: Hello, Are there better ways to install fpc 2.2.0 on ubuntu besides downloading ~15 debs from sourceforge ? I'm thinking that it would be much more convenient to have all those debs packaged into a single tar . Or maybe there is some deb repository available ?

Re: [fpc-pascal] Installing fpc 2.2.0 deb packages

2008-04-11 Thread syraxes
On Fri, Apr 11, 2008 at 10:29:57AM +0200, Vincent Snijders wrote: [EMAIL PROTECTED] schreef: Hello, Are there better ways to install fpc 2.2.0 on ubuntu besides downloading ~15 debs from sourceforge ? I'm thinking that it would be much more convenient to have all those debs packaged

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-11 Thread Matt Emson
Michael Van Canneyt wrote: And it is exactly why I can't use MySQL, MSSQL: they don't have sequences or generators. I need the ID BEFORE I insert the record, not after. YES!! This is also missing from SQL Server... or at least, using a GUID is complete overkill. The mechanisms SQL Server

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-11 Thread Michael Van Canneyt
On Wed, 9 Apr 2008, Tom York wrote: On Wed, Apr 9, 2008 at 5:53 AM, Codebue Fabio - P-Soft [EMAIL PROTECTED] wrote: Take a look to a new Firebird 2.1 next month and probably you will change your idea about it... UDF: FreeAdHocUDF, a lot of internal SQL function... and if you wanna a

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-11 Thread Inoussa OUEDRAOGO
2008/4/11, Matt Emson [EMAIL PROTECTED]: Michael Van Canneyt wrote: And it is exactly why I can't use MySQL, MSSQL: they don't have sequences or generators. I need the ID BEFORE I insert the record, not after. YES!! This is also missing from SQL Server... or at least, using a GUID

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-11 Thread Matt Emson
Inoussa OUEDRAOGO wrote: Have you try SCOPE_IDENTITY() ? Available at least since SQL SERVER 2000. I have used it with success. Well, yeah. But it's not perfect. I want generators, as in: create generator an_atomic_counter; set an_atomic_counter = 1 /*or something like that*/ declare

Re[2]: [fpc-pascal] Building-Block Design - or putting it all together ; -)

2008-04-11 Thread MPDJ
Thanks, I'll check that one out. Andy PN I can't help you with your problem directly, but perhaps this newsgroup for PN object orient programming could help: PN News server:newsgroups.borland.com PN news group:borland.public.delphi.oodesign PN It is for Delphi, but it would be equally

Re: [fpc-pascal] Serial unit for Linux and Windows

2008-04-11 Thread Marco van de Voort
I am planning to improve, if possible, the serial units for both Linux and Windows, but have a few questions before I proceed any further: 1- I guess the unit rtl\win\wininc\struct.inc has 2 bugs: a- bm_DCB_fRtsControl = $3000. It should be $2000. b- bm_DCB_fDtrControl = $30.

Re: [fpc-pascal] Serial unit for Linux and Windows

2008-04-11 Thread Jeff Wormsley
Marco van de Voort wrote: 5- Is it OK to designate serial ports by COMx fow Windows and /dev/ttySx for Linux? No, since e.g a serial port on some other device might have a different state. And strictly, this is even possible for Windows. Always keep naming configurable and

Re: [fpc-pascal] Serial unit for Linux and Windows

2008-04-11 Thread Stephano
Tomas Hajny wrote: If I read the Windows unit sources correctly, INVALID_HANDLE_VALUE = -1 too. However, I believe that you might consider returning UnusedHandle constant defined in System unit for all the platforms (that's -1 for at least most of them anyway, but I believe that it may be still

Re: [fpc-pascal] Serial unit for Linux and Windows

2008-04-11 Thread Stephano
Marco van de Voort wrote: No, they are correct. If you look into the headers you'll see: DWORD DCBlength; /* sizeof(DCB) */ DWORD BaudRate; /* Baudrate at which running */ DWORD fBinary: 1; /* Binary Mode (skip EOF check)*/ DWORD

Re: [fpc-pascal] Serial unit for Linux and Windows

2008-04-11 Thread Koenraad Lelong
Stephano schreef: I am planning to improve, if possible, the serial units for both Linux and Windows, but have a few questions before I proceed any further: ... 5- Is it OK to designate serial ports by COMx fow Windows and /dev/ttySx for Linux? FWIW, I have a USB to serial converter. It

Re: [fpc-pascal] Serial unit for Linux and Windows

2008-04-11 Thread Stephano
Koenraad Lelong wrote: 5- Is it OK to designate serial ports by COMx fow Windows and /dev/ttySx for Linux? FWIW, I have a USB to serial converter. It shows as /dev/ttyUSB0. I see now how I did not express myself clearly: I meant that I did not intend to change the way devices are specified.

Re: [fpc-pascal] Serial unit for Linux and Windows

2008-04-11 Thread Tomas Hajny
On Fri, April 11, 2008 22:12, Stephano wrote: Tomas Hajny wrote: If I read the Windows unit sources correctly, INVALID_HANDLE_VALUE = -1 too. However, I believe that you might consider returning UnusedHandle constant defined in System unit for all the platforms (that's -1 for at least most of