Re: [fpc-pascal] Is there a way to search this pascal group

2009-01-26 Thread Jonas Maebe
On 27 Jan 2009, at 03:01, vmars wrote: know that I can chug thru http://lists.freepascal.org/lists/fpc-pascal/ by month/thread etc., but: Is there a way to search this pascal group: http://lists.freepascal.org/lists/fpc-pascal/ You can search the mailing list archives here: http://www.mai

Re: [fpc-pascal] very simple text indexing system

2009-01-26 Thread Peter W A Wood
On 27 Jan 2009, at 14:47, Graeme Geldenhuys wrote: Hi, I would like to implement a very simple text indexing system (full text search) for one of our products. I know there are a few products our there I can use in combination with RDBMS etc... But I would like to keep the 3rdParty components

Re: [fpc-pascal] Xcode access to fpc documentation

2009-01-26 Thread Jonas Maebe
On 27 Jan 2009, at 00:55, Ken G. Brown wrote: Is there a way to add the fpc documentation so that Xcode help can access it like the docsets? Not that I know. In the MacOS fpc 2.2.2 download, in the MainUnit.pas of the FPC-C-C+ +CarbonApplication template for new projects, there is a typo

[fpc-pascal] very simple text indexing system

2009-01-26 Thread Graeme Geldenhuys
Hi, I would like to implement a very simple text indexing system (full text search) for one of our products. I know there are a few products our there I can use in combination with RDBMS etc... But I would like to keep the 3rdParty components down to a minimum. So I thought, if I could implement

Re: [fpc-pascal] FPC with Firebird SuperServer

2009-01-26 Thread Bee
We have been using Mac OS X 10.5 XCode 311, Firebird 211 Classic 32 bit with FPC 224 (which contains the fix for the framework .dylib extension so that libfbclient.dylib can be located). This works with FPC, FlameRobin and RazorSQL. However, reading Firebird's recommendation that unless there

[fpc-pascal] Changes in sockets unit

2009-01-26 Thread leledumbo
I saw many deprecated things in sockets unit. Could someone tell me what to do to port existing code? Why are Sock2Text and Text2Sock deprecated? You know, they're very handy (sometimes). -- View this message in context: http://www.nabble.com/Changes-in-sockets-unit-tp21680261p21680261.html Sen

Re: [fpc-pascal] If ShellExecute(0, 'open', PChar(ExecuteName), '', '', 0) <= 32 Then

2009-01-26 Thread Vinzent Höfler
Original-Nachricht > Datum: Mon, 26 Jan 2009 17:42:23 -0600 > Von: "vmars" > An: fpc-pascal@lists.freepascal.org > Betreff: [fpc-pascal] If ShellExecute(0, \'open\', PChar(ExecuteName), \'\', > \'\',0) <= 32 Then > Thanks in advance! > > [Any ideas why this works: > Ex

[fpc-pascal] Is there a way to search this pascal group

2009-01-26 Thread vmars
I know that I can chug thru http://lists.freepascal.org/lists/fpc-pascal/ by month/thread etc., but: Is there a way to search this pascal group: http://lists.freepascal.org/lists/fpc-pascal/ Maybe something similar to Delphi's http://www.tamaracka.com/search.htm Thanks! ô¿ô V e r n WinX

[fpc-pascal] If ShellExecute(0, 'open', PChar(ExecuteName), '', '', 0) <= 32 Then

2009-01-26 Thread vmars
Thanks in advance! [Any ideas why this works: ExecuteName := (AppPathExe + 'Del2Pas.bat.lnk'); ExecuteShell; ] [But this doesn't work: ExecuteName := (AppPathExe + 'Del2Pas.bat'); ExecuteShell; And doesn't give an error msg.] procedure TForm1.ExecuteShell; begin //ShowMessage('Execu

Re: [fpc-pascal] EFCreateError' Unable to create file

2009-01-26 Thread vmars
Ahh.., I see. Thanks! ô¿ô V e r n WinXp sp2 , Delphi5, WebDwarf, Trellian WebPage, Lazarus-0.9.26-fpc-2.2.2-win32.exe, wxPython2.8-win32-unicode-2.8.9.1-py26.exe , Boa 0.6.1 http://www.flickr.com/photos/vmars956/ Wanted: Dwarf Hibiscus (Orange/Rasberry) - Original Message - From:

[fpc-pascal] Xcode access to fpc documentation

2009-01-26 Thread Ken G. Brown
Is there a way to add the fpc documentation so that Xcode help can access it like the docsets? In the MacOS fpc 2.2.2 download, in the MainUnit.pas of the FPC-C-C++CarbonApplication template for new projects, there is a typo causing it to not compile. The ) after $endif should be }. {$if not d

[fpc-pascal] Profiling

2009-01-26 Thread Mattias Gaertner
I need to profile lazarus applications under linux. I tried gprof, but it is broken since years and shows no record. I tried valgrind (callgrind), but it slows down the execution by factor 80, making it unusable. I found the following page, but it does not help here: http://wiki.lazarus.freepascal

Re: [fpc-pascal] EFCreateError' Unable to create file

2009-01-26 Thread Bart
On 1/26/09, vmars wrote: > Double quotes are ok in windows. > Check your system for any ShortCut aimed at "c:\Program Files". > And you'll see double quotes. I know, but that is not what I meant by saying that double quotes are not allowed in the filename. By that I meant they are not allowed a

Re: [fpc-pascal] EFCreateError' Unable to create file

2009-01-26 Thread vmars
Double quotes are ok in windows. Check your system for any ShortCut aimed at "c:\Program Files". And you'll see double quotes. But your right about me having too many ""s. I fixed that, and all is well. Thanks All ! ô¿ô V e r n WinXp sp2 , Delphi5, WebDwarf, Trellian WebPage, Lazarus-0.9.2

Re: [fpc-pascal] Using cocoa instead of carbon libraries

2009-01-26 Thread Travis Siegel
On Jan 26, 2009, at 11:02 AM, dmitry boyarintsev wrote: See this page: http://wiki.freepascal.org/PasCocoa Thanks for that, will check it out. The carbon apis are no longer supported by apple, Has apple anounced that? Repeatedly. They're encouraging all developers to use the cocoa

Re: [fpc-pascal] Using cocoa instead of carbon libraries

2009-01-26 Thread dmitry boyarintsev
See this page: http://wiki.freepascal.org/PasCocoa > The carbon apis are no longer supported by apple, Has apple anounced that? > and it would be nice to > have cocoa apis supported, because of their better integration to the > system, and their accessibility features that are basically free when

Re: [fpc-pascal] Calling C functions from FPC

2009-01-26 Thread Ken G. Brown
Thank you, that helps. And I have found documentation in the FPC 2.2.2 download that talks about the Xcode integration templates that handle initial project setup. I was wondering about that as well. Ken G. Brown At 8:53 AM +0100 1/26/09, fpc-pascal-requ...@lists.freepascal.org apparently wrote

[fpc-pascal] Using cocoa instead of carbon libraries

2009-01-26 Thread Travis Siegel
Is there any way to use cocoa libraries instead of the carbon ones that have the headers shipped with fpc on osx? The carbon apis are no longer supported by apple, and it would be nice to have cocoa apis supported, because of their better integration to the system, and their accessibility fea

Re: [fpc-pascal] SqlDB and MySQL connection string?

2009-01-26 Thread Graeme Geldenhuys
On Mon, Jan 26, 2009 at 12:11 PM, Joost van der Sluis wrote: > > They are all the same, you should change it for Firebird also. > > Hostname := server; > database := database location; > > That's the same for all databases. ;) Ah, ok. We already started doing the above, so will continue with it..

[fpc-pascal] Freepascal 2.2.4rc1 released

2009-01-26 Thread Joost van der Sluis
We have placed the first release-candidate of the Free Pascal Compiler version 2.2.4 on our ftp-servers. You can help improve the upcoming 2.2.4 release by downloading and testing this release. If you want you can report what you have done here: http://wiki.freepascal.org/Testers_2.2.4 With this

Re: [fpc-pascal] SqlDB and MySQL connection string?

2009-01-26 Thread Joost van der Sluis
Op maandag 26-01-2009 om 10:54 uur [tijdzone +0200], schreef Graeme Geldenhuys: > Hi, > > When connecting to a Firebird database the connection string is as follows: > >":" > > Is the same format used for MySQL databases? You could, but I woudn't do it. > What about any other databases tha

Re: [fpc-pascal] Decimal Precision Issue with Firebird

2009-01-26 Thread Joost van der Sluis
Op maandag 26-01-2009 om 09:13 uur [tijdzone +0100], schreef Michael Van Canneyt: > > On Sun, 25 Jan 2009, Andrew Hall wrote: > > > We are having problems reading decimal/numeric column types with TSQLQuery. > > It appears if the precision of a decimal/numeric is more than 4 (for > > instance, >

Re: [fpc-pascal] Calling C functions from FPC

2009-01-26 Thread Jonas Maebe
On 26 Jan 2009, at 11:44, dmitry boyarintsev wrote: huh?!! well thanks! because i always thought that 'mwpascal' is the same as 'fastcall' (register), except for 'const' parameters. On non-i386, all calling conventions are identical (to the standard calling convention defined in the ABI) ex

Re: [fpc-pascal] Calling C functions from FPC

2009-01-26 Thread dmitry boyarintsev
huh?!! well thanks! because i always thought that 'mwpascal' is the same as 'fastcall' (register), except for 'const' parameters. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Calling C functions from FPC

2009-01-26 Thread Jonas Maebe
On 26 Jan 2009, at 11:22, dmitry boyarintsev wrote: procedure cTest; cdecl; external; it's true for unix functions, but Carbon functions are using mwpascal convention, right? mwpascal is the same as cdecl, except that it always passes "const" parameters that are record types by reference (

Re: [fpc-pascal] Calling C functions from FPC

2009-01-26 Thread dmitry boyarintsev
> procedure cTest; cdecl; external; it's true for unix functions, but Carbon functions are using mwpascal convention, right? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] SqlDB and MySQL connection string?

2009-01-26 Thread Graeme Geldenhuys
Hi, When connecting to a Firebird database the connection string is as follows: ":" Is the same format used for MySQL databases? What about any other databases that SqlDB supports? Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal

Re: [fpc-pascal] FPC with Firebird SuperServer

2009-01-26 Thread Michael Van Canneyt
On Mon, 26 Jan 2009, Graeme Geldenhuys wrote: > On Mon, Jan 26, 2009 at 10:11 AM, Michael Van Canneyt > wrote: > > > > As far as the 'recommendation' is concerned: for systems with multiple > > CPUs it is better to use Classic server, as Superserver can use only > > 1 processor. > > "... multi

Re: [fpc-pascal] FPC with Firebird SuperServer

2009-01-26 Thread Graeme Geldenhuys
On Sun, Jan 25, 2009 at 10:47 PM, Andrew Hall wrote: > 1) Can FPC work with Firebird SuperServer - if so, what configuration > changes are required or does the FPC library required modification? We use Firebird SuperServer on our Linux and Windows systems. No modifications were required. Regar

Re: [fpc-pascal] FPC with Firebird SuperServer

2009-01-26 Thread Graeme Geldenhuys
On Mon, Jan 26, 2009 at 10:11 AM, Michael Van Canneyt wrote: > > As far as the 'recommendation' is concerned: for systems with multiple > CPUs it is better to use Classic server, as Superserver can use only > 1 processor. "... multiple CPUs" - Does that include the new multi-core CPU's? > The u

Re: [fpc-pascal] Decimal Precision Issue with Firebird

2009-01-26 Thread Michael Van Canneyt
On Sun, 25 Jan 2009, Andrew Hall wrote: > We are having problems reading decimal/numeric column types with TSQLQuery. > It appears if the precision of a decimal/numeric is more than 4 (for instance, > DECIMAL(12,8) or DECIMAL(18,10) or DECIMAL(10,6) TSQLQuery raises an exception > on reading - E

Re: [fpc-pascal] FPC with Firebird SuperServer

2009-01-26 Thread Michael Van Canneyt
On Sun, 25 Jan 2009, Andrew Hall wrote: > We have been using Mac OS X 10.5 XCode 311, Firebird 211 Classic 32 bit with > FPC 224 (which contains the fix for the framework .dylib extension so that > libfbclient.dylib can be located). This works with FPC, FlameRobin and > RazorSQL. However, read

Re: [fpc-pascal] how to pass a unicode string pointer in Mac OSX

2009-01-26 Thread Jonas Maebe
On 26 Jan 2009, at 09:48, Guru Kathiresan wrote: In windows wchar_t size is 2 so I thought I can pass a WideString type casted with PWideChar. In Mac ,size of wchar_t is 4 in the C library and the size of WideChar in FPC is 2. In that case how do we convert the 2 byte WideChar to 4 byte wc