Re: [fpc-pascal] Missing GetLastOSError() in DOS and MacOS

2010-06-10 Thread Tomas Hajny
On Thu, June 10, 2010 06:29, Bihar Anwar wrote: I don't see SysUtils.GetLastOSError() in DOS. Looking at a glance, I think it will be a trivial effort by just returning Dos.DosError variable content. Thanks for the notification, I'll have a look at it (creating a bug report to make sure it

Re: [fpc-pascal] how to use odbc Allow multiple statements

2010-06-10 Thread Michael Van Canneyt
Just use 2 TSQLQuery statements at once. Each will set up a connection to MySQL, as far as I remember. Michael. On Thu, 10 Jun 2010, liuzg2 wrote: how to use odbc Allow multiple statements Connection mssql ___ fpc-pascal maillist -

Re: [fpc-pascal] how to use odbc Allow multiple statements

2010-06-10 Thread Graeme Geldenhuys
Op 2010-06-10 08:23, Michael Van Canneyt het geskryf: Just use 2 TSQLQuery statements at once. Each will set up a connection to MySQL, as far as I remember. [...maybe he meant the following...] Is there a SQL Script component in SqlDB? So that you can pass it a DDL script file which will

Re: [fpc-pascal] Negative RTL Error Codes in Some Platforms

2010-06-10 Thread Tomas Hajny
On Thu, June 10, 2010 05:44, Bihar Anwar wrote: I look at the FPC RTL source codes and notice that in some OSes (e.g. OS/2, DOS) every RTL functions which call OS API functions will return the OS error code as a negative number. What is the reason behind this? I don't find such a convention in

Re: [fpc-pascal] Missing GetLastOSError() in DOS and MacOS

2010-06-10 Thread Bihar Anwar
On June 10, 2010 1:00:27 PM, Tomas Hajny wrote: ... or whether it should return the last OS error for what OS function invoked recently (also directly without using RTL). Yes, I think this one is agreed with other similar RTL functions.

Re: [fpc-pascal] Mozilla XPCOM

2010-06-10 Thread Frank Peelo
On 09/06/10 15:50, Marcos Douglas wrote: On Tue, Jun 8, 2010 at 3:44 PM, Luiz Americo Pereira Camara luiz...@oi.com.br wrote: Marcos Douglas escreveu: Exactly. Therefore I always used 'const' only at 'strings' params. I thought it had changed, but not. ;-) It can be useful

Re: [fpc-pascal] Missing GetLastOSError() in DOS and MacOS

2010-06-10 Thread Jonas Maebe
On 10 Jun 2010, at 06:29, Bihar Anwar wrote: Also, I notice that SysUtils.GetLastOSError() in MacOS is defined but it's implementation is empty. I've no knowledge on MacOS, so my question is... Is this by designed? MacOS in the RTL stands for System 7.5 - Mac OS 9.2.x, i.e., the classic

Re: [fpc-pascal] how to use odbc Allow multiple statements

2010-06-10 Thread Michael Van Canneyt
On Thu, 10 Jun 2010, Graeme Geldenhuys wrote: Op 2010-06-10 08:23, Michael Van Canneyt het geskryf: Just use 2 TSQLQuery statements at once. Each will set up a connection to MySQL, as far as I remember. [...maybe he meant the following...] Is there a SQL Script component in SqlDB? So

Re: [fpc-pascal] Negative RTL Error Codes in Some Platforms

2010-06-10 Thread Bihar Anwar
On June 10, 2010 1:46:39 PM, Tomas Hajny wrote: If I remember correctly, it's been done in order to differentiate standard error codes (supposedly cross-platform and mostly inherited from TP/BP) from all other error codes which may be triggered there and which are completely platform specific.

Re: [fpc-pascal] Missing GetLastOSError() in DOS and MacOS

2010-06-10 Thread Bihar Anwar
June 10, 2010 3:03:45 PM, Jonas Maebe wrote: MacOS in the RTL stands for System 7.5 - Mac OS 9.2.x, i.e., the classic Mac OS which preceded Mac OS X. I don't think the sysutils unit was ever completely ported for that platform. Thanks Jonas, your clarification strengthens my thought

Re: [fpc-pascal] Missing GetLastOSError() in DOS and MacOS

2010-06-10 Thread Jonas Maebe
On 10 Jun 2010, at 12:13, Bihar Anwar wrote: Thanks Jonas, your clarification strengthens my thought before. I saw other several defects in MacOS SysUtils, just mention the implementation of FindNext: Result:=DoFind (Rslt); // whereas DoFind() is declared as a procedure How can

Re: [fpc-pascal] Negative RTL Error Codes in Some Platforms

2010-06-10 Thread Tomas Hajny
On Thu, June 10, 2010 12:01, Bihar Anwar wrote: On June 10, 2010 1:46:39 PM, Tomas Hajny wrote: . . However, you shouldn't rely on the returned values too much anyway. No, I just rely on such a returned values in a very few cases. For example, In Windows/OS2/DOS, when FindNext() encounters

Re: [fpc-pascal] Negative RTL Error Codes in Some Platforms

2010-06-10 Thread Bihar Anwar
On June 10, 2010 6:12:42 PM, Tomas Hajny wrote: OK, this is a slightly different story then. Win32 API function FindFirst (and thus also the Delphi function FindFirst provided in SysUtils) returns the search handle (positive value) in case of a success and -1 in case of an error. The

[fpc-pascal] would like to open source Ansi C parser

2010-06-10 Thread Albert Almeida
Hi, I've an Ansi C parser written in Delphi that has been lying around my HD for some time. It supports almost all language features and the preprocessor is almost complete too. I was wondering if there were any volunteers out there willing to continue development of this as an Open Source

Re: [fpc-pascal] would like to open source Ansi C parser

2010-06-10 Thread dmitry boyarintsev
On Fri, Jun 11, 2010 at 2:19 AM, Albert Almeida mago67...@yahoo.com wrote: I was wondering if there were any volunteers out there willing to continue development of this as an Open Source project. This tool may become a full fledged C Header to Pascal conversion tool. I've written an ObjC

[fpc-pascal] Re: how to use odbc Allow multiple statements

2010-06-10 Thread liuzg2
but can TSQLScript result as tdateset? 1: select top 1 * into #x from r_sale; select * from #x 2:declare @busno VARCHAR(10) select @busno='0001' CREATE TABLE #wareid .. select * from #wareid where bus...@busno ___ fpc-pascal maillist -

[fpc-pascal] how to use odbc Allow multiple statements

2010-06-10 Thread liuzg2
but can TSQLScript result as tdateset? 1: select top 1 * into #x from r_sale; select * from #x 2:declare @busno VARCHAR(10) select @busno='0001' CREATE TABLE #wareid .. select * from #wareid where bus...@busno ___ fpc-pascal maillist -