Re: [fpc-pascal] how to pass a unicode string pointer in Mac OSX
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 wchar_t string? You can use this function from the system unit: function WideStringToUCS4String(const s : WideString) : UCS4String; And for the other way around: function UCS4StringToWideString(const s : UCS4String) : WideString; Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC with Firebird SuperServer
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, reading Firebird's recommendation that unless there is a good reason, SuperServer should be used we have attempted this conversion. Switching to SuperServer 32 bit, FlameRobin and RazorSQL continue to work - but FPC raises an exception. EInOutError : Can not load default Firebird clients (libgds.dylib or libfbclient.dylib). Check your installation. When the Framework is opened in the OS X library we confirm that libfbclient.dylib is no longer found (although the other 4 library files remain). Questions 1) Can FPC work with Firebird SuperServer - if so, what configuration changes are required or does the FPC library required modification? It can, and no change should be necessary. 2) Is there other advice the forum can offer (eg. does Classic remain a reasonable choice, is SuperServer support planned, etc). From the client perspective, there is no difference whatsoever whether you are running superserver or classic. I use both. The problem you are experiencing is an installation problem, not an architectural problem. For some reason, the FPC application fails to find the libraries. However, I have no idea why this happens. I'm not a Mac OS X expert, so I can't help with that. 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. The upcoming version 2.5 of Firebird should remedy that. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Decimal Precision Issue with Firebird
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 - EDatabaseError : Unknown field type : COLUMN_NAME. However, using the established (informal) money-types for Firebird - DECIMAL(18,4) or DECIMAL(10,4) are OK, and multiple other variations are OK if precision is 4 or less. Questions: 1) is this a bug, or a known feature or limitation of the FPC Firebird library? It is a limitation. 2) is there a workaround? We require a decimal with at least 9 decimal places precision (?perhaps DOUBLE PRECISION) I think double precision is your only option at this point. 3) the issue with negative numerics with TSQLQuery being treated as unsigned, described in the bug list as fixed in FPC 231 - has this fix been moved to FPC 224? I think it has, but Joost should confirm that. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC with Firebird SuperServer
On Mon, Jan 26, 2009 at 10:11 AM, Michael Van Canneyt mich...@freepascal.org 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 upcoming version 2.5 of Firebird should remedy that. Excellent. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC with Firebird SuperServer
On Mon, 26 Jan 2009, Graeme Geldenhuys wrote: On Mon, Jan 26, 2009 at 10:11 AM, Michael Van Canneyt mich...@freepascal.org 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? Yes. It uses 1 core. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] SqlDB and MySQL connection string?
Hi, When connecting to a Firebird database the connection string is as follows: server:database location Is the same format used for MySQL databases? What about any other databases that SqlDB supports? Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Calling C functions from FPC
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
Re: [fpc-pascal] Calling C functions from FPC
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 (because that's what MetroWerks Pascal, aka mwpascal, did). Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Calling C functions from FPC
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
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) except for some small Pascal- level details (such as the const parameters in case of mwpascal). And on all architectures except for i386, the standard calling conventions pass a number of parameters in registers. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Decimal Precision Issue with Firebird
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, DECIMAL(12,8) or DECIMAL(18,10) or DECIMAL(10,6) TSQLQuery raises an exception on reading - EDatabaseError : Unknown field type : COLUMN_NAME. However, using the established (informal) money-types for Firebird - DECIMAL(18,4) or DECIMAL(10,4) are OK, and multiple other variations are OK if precision is 4 or less. Questions: 1) is this a bug, or a known feature or limitation of the FPC Firebird library? It is a limitation. Not only of the Firebird components, but all db-components. There's no support for real BCD fields. But now the fmtbcd unit has been added to fpc it's a trivial task to add it. 2) is there a workaround? We require a decimal with at least 9 decimal places precision (?perhaps DOUBLE PRECISION) I think double precision is your only option at this point. 3) the issue with negative numerics with TSQLQuery being treated as unsigned, described in the bug list as fixed in FPC 231 - has this fix been moved to FPC 224? I think it has, but Joost should confirm that. Not yet. We have to release rc1 first. Joost. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] SqlDB and MySQL connection string?
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: server:database location Is the same format used for MySQL databases? You could, but I woudn't do it. What about any other databases that SqlDB supports? They are all the same, you should change it for Firebird also. Hostname := server; database := database location; That's the same for all databases. ;) Joost. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Freepascal 2.2.4rc1 released
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 release we also want to test our new packaging-system. After installing the package manager (fppkg) can be called from the command-line. For now only the 'lnet' package is available for installation through the package system. When all goes well it could be that more packages will be added. For more information about fppkg: http://wiki.freepascal.org/fppkg Changes that may break backwards compatibility are documented at: http://wiki.freepascal.org/User_Changes_2.2.4 Downloads are available at: ftp://ftp.freepascal.org/pub/fpc/beta/2.2.4rc1/ Enjoy! The Free Pascal Compiler Team Free Pascal Compiler Version 2.2.4rc1 ** What's New in 2.2.4rc1 ** Free Pascal 2.2.4rc1 contains many bug-fixes and some new features. The main purpose of this release is to fix problems reported with FPC 2.2.2. Please also see http://wiki.freepascal.org/User_Changes_2.2.4 for a list of changes which may affect the behaviour of previously working code, and how to cope with these changes. Some highlights are: All: * Experimental packages-installation tool Packages: * Added support for TIFF reading/writing in fcl-image * Improvements and fixes in CHM support * Fixed linking the gtk2-package with gtk versions above 2.13.4 IDE: * Added support for CHM help files Documentation See http://bugs.freepascal.org/changelog_page.php for the list of reported bugs which have been fixed in this release. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] SqlDB and MySQL connection string?
On Mon, Jan 26, 2009 at 12:11 PM, Joost van der Sluis jo...@cnoc.nl 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... Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Using cocoa instead of carbon libraries
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 features that are basically free when used properly. Is this something that can be done, is being done, planned to be done, or is it something I can do? Honestly, I'm not tht great at C, and even using the carbon headers already provided are giving me enough troubles (are there any samples available?) but if we could use cocoa apis instead, fpc applications would fall right inline with accessibility guidelines, and make fpc programs accessible to many more folks using osx. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Calling C functions from FPC
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: Date: Mon, 26 Jan 2009 09:20:29 +0200 From: Jonas Maebe jonas.ma...@elis.ugent.be Subject: Re: [fpc-pascal] Calling C functions from FPC To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Message-ID: b0cfa4ed-a184-4cc4-b446-ccb67d9fc...@elis.ugent.be Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On 26 Jan 2009, at 01:24, Ken G. Brown wrote: On MacOS X 10.5.6 Intel targeting 10.3.9 PPC: What are the gotchas with respect to calling C functions from FPC? Mark the external C functions you import in your Pascal code as cdecl, e.g. procedure cTest; cdecl; external; What other issues might I have to watch out for? Make sure that the types in your Pascal and C code match. The easiest is to use the ctypes unit. Then you can use the common C-types by prefixing them with c (e.g., cint, clong, clonglong, cuint, culong, culonglong, cfloat, ...). And don't try to free pointers allocated in the C code in Pascal code and vice versa. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using cocoa instead of carbon libraries
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 used properly. what do you mean by accessibility features? http://developer.apple.com/documentation/Carbon/Conceptual/MakingAppsAccessible/AXCarbonIntro/chapter_1_section_1.html Thanks, Dmitry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using cocoa instead of carbon libraries
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 apis, because of the tighter integration to the system, and future upgrades and so forth. 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 used properly. what do you mean by accessibility features? Voiceover (the screen reader that ships with osx) and the other accessibility features such as reading outloud, screen contrast, larger/smaller text, background/foreground colors and so on) are all basically free when using cocoa apis, as the features are built-in to the cocoa apis, and require very little (if any) coding on the developers part to make the programs usable by users of these technologies. Being a voiceover user myself, I'm of course all for this modification. Carbon aps can be made accessible, but it takes additional work on the developers part, and generally, they're still a bit more difficult to use (I.E. vo users need to use simulated mouse clicks instead of using voiceover generated button clicks) as well as labels for things like buttons, tables and scroll bars. All these things are much simpler under cocoa than they ae using carbon equivalents. http://developer.apple.com/documentation/Carbon/Conceptual/MakingAppsAccessible/AXCarbonIntro/chapter_1_section_1.html As opposed to the one for cocoa at: http://developer.apple.com/documentation/Cocoa/Conceptual/Accessibility/cocoaAXIntro/cocoaAXintro.html There's considerably less work to access enable a cocoa app then there is for a carbon one, as evidenced by comparisons between these two document trails. On the surface, it looks similar, but do some digging, and you'll see there's a world of difference. A lot of things you get for free with cocoa takes specific coding on the carbon apis. That's why I'm trying for cocoa support (preferrably by default) as that would make more apps accessible right out of the box. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] EFCreateError' Unable to create file
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.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: Bart bartjun...@gmail.com To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Sunday, January 25, 2009 5:36 AM Subject: Re: [fpc-pascal] EFCreateError' Unable to create file Try Memo1.Lines.SaveToFile(ExecuteName); Except ShowMessage('Shoots, couldnt SaveToFile!'); end; [Project raised exception class 'EFCreateError' with message: Unable to create file C:lazarusfpc2.2.2bini386-win32Del2PasDel2PasDel2Pas.bat] You cannot create filenames that have double quotes () in them on Windows (your ExecuteName has double quotes in it as you stated yourself), so the EFCreateError is correct. See for yourself: ... Try Memo1.SaveToFile(ExecuteName); Except On E: Exception do begin ShowMessage('Exception occurred of '+E.ClassName+LineEnding+ 'Attempted to save to:'+LineEnding+'+ExecuteName+''); end; And you will see: Exception occurred of EFCreateError Attempted to save to: C:\lazarus\fpc\2.2.2\bin\i386-win32\Del2Pas\Del2Pas\Del2Pas.bat And you will see the double quotes in the filename... I tested your code in Lazarus and in Delphi and both raise the error with the filename you supplied to SaveTofile (that is with all backslashes intact), so I cannot reproduce the second part of your bug. Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] EFCreateError' Unable to create file
On 1/26/09, vmars vm...@rgv.rr.com 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 as part of the filename itself. The double quotes around the filename are put there and interpreted by the shell (OS). If you ask the OS directly for the filename, there will be no double quotes in it. Check for yourself In a DOS box do C:copy con 1 2 3.txt test file with spaces in its name ^Z (that is press Ctrl+Z) and press Enter. Now you create a file with spaces in its name. The shell (cmd.exe in W2K or higher) handles the double quotes. (It actually needs these to know if a space is part of the filename, or it means that the next part of the command is a new parameter) Now write a program and with FindFirst retrieve the filname and see: the double quotes are not there. Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Profiling
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.org/Profiling How can I profile under linux? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Xcode access to fpc documentation
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 defined(VER2_2_0) and not defined(VER2_0_4)} MacOSAll, {$else} FPCMacOSAll, {$endif) CSupport; As well, the way the code is commented out causes both MacOSAll and FPCMacOSAll to be used. Are they both necessary? Where are MacOSAll and FPCMacOSAll supposed to be located? At the moment Spotlight does not find them for me. Thx for any tips, Ken G. Brown ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] EFCreateError' Unable to create file
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: Bart bartjun...@gmail.com To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Monday, January 26, 2009 12:58 PM Subject: Re: [fpc-pascal] EFCreateError' Unable to create file On 1/26/09, vmars vm...@rgv.rr.com 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 as part of the filename itself. The double quotes around the filename are put there and interpreted by the shell (OS). If you ask the OS directly for the filename, there will be no double quotes in it. Check for yourself In a DOS box do C:copy con 1 2 3.txt test file with spaces in its name ^Z (that is press Ctrl+Z) and press Enter. Now you create a file with spaces in its name. The shell (cmd.exe in W2K or higher) handles the double quotes. (It actually needs these to know if a space is part of the filename, or it means that the next part of the command is a new parameter) Now write a program and with FindFirst retrieve the filname and see: the double quotes are not there. Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] If ShellExecute(0, 'open', PChar(ExecuteName), '', '', 0) = 32 Then
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('ExecuteShell = ' + ExecuteName); If ShellExecute(0, 'open', PChar(ExecuteName), '', '', 0) = 32 Then MessageDlg('Unable to open file: ' + ExecuteName + ' ErrorCode= ' + IntToStr(0), mtError, [mbOk], 0); end; // procedure TForm1.ExecuteShell ô¿ô 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) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Is there a way to search this pascal group
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 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) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] If ShellExecute(0, 'open', PChar(ExecuteName), '', '', 0) = 32 Then
Original-Nachricht Datum: Mon, 26 Jan 2009 17:42:23 -0600 Von: vmars vm...@rgv.rr.com 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: ExecuteName := (AppPathExe + 'Del2Pas.bat.lnk'); ExecuteShell; ] [But this doesn't work: ExecuteName := (AppPathExe + 'Del2Pas.bat'); ExecuteShell; And doesn't give an error msg.] Just trying an educated guess here, but I suppose .bat-files can only be executed via command.com (cmd.exe). Something like %COMSPEC% /c Del2Pas.bat could do the trick. Vinzent. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Changes in sockets unit
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 Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC with Firebird SuperServer
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 is a good reason, SuperServer should be used we have attempted this conversion. Switching to SuperServer 32 bit, FlameRobin and RazorSQL continue to work - but FPC raises an exception. EInOutError : Can not load default Firebird clients (libgds.dylib or libfbclient.dylib). Check your installation. When the Framework is opened in the OS X library we confirm that libfbclient.dylib is no longer found (although the other 4 library files remain). http://paulbeachsblog.blogspot.com/2008/03/where-is-libfbclientdylib-on-macosx.html Questions 1) Can FPC work with Firebird SuperServer - if so, what configuration changes are required or does the FPC library required modification? Yes, it can. I'm using both of them. 2) Is there other advice the forum can offer (eg. does Classic remain a reasonable choice, is SuperServer support planned, etc). I simply made a symlink name libfbclient.so in folder /usr/lib which point to /Library/Frameworks/Firebird.framework/Versions/Current/Firebird then everything worked fine (as in Linux). HTH. -Bee- ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] very simple text indexing system
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 something myself and be able to compile it into our software, that would be great. I must admit, I have no idea how text indexing software work. So maybe my idea is unrealistic. Either way, does anybody think something like this is possible in a few days? Anybody got some articles or documents explaining the basics of how text indexing and full text search systems work? Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Xcode access to fpc documentation
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 causing it to not compile. The ) after $endif should be }. Thanks for reporting this, I'm not sure how I missed that. It's still there in 2.2.4rc1, I'll fix it for the final 2.2.4 release. As well, the way the code is commented out causes both MacOSAll and FPCMacOSAll to be used. Are they both necessary? No, only MacOSAll is. See http://wiki.freepascal.org/User_Changes_2.2.2#FPCMacOSAll_unit for more information. Where are MacOSAll and FPCMacOSAll supposed to be located? At the moment Spotlight does not find them for me. The unit is located at /usr/local/lib/fpc/2.2.2/units/i386-darwin/ univint/MacOSAll.ppu (or powerpc-darwin in case you're on ppc). The reason that you didn't find it with Spotlight, is that it does not show files under /usr by default (because you seldom want to find files there, as only command line applications put things there). You can either use the command line interface to spotlight (mdfind MacOSAll), or change the settings of the GUI one to also include system files). That said, this unit (just like all others) is only distributed in compiled form with the installer, so it's not going to be very useful to you. If you want the sources, you can download them here: http://www.freepascal.org/down/source/sources.var Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] very simple text indexing system
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 down to a minimum. So I thought, if I could implement something myself and be able to compile it into our software, that would be great. I must admit, I have no idea how text indexing software work. So maybe my idea is unrealistic. Either way, does anybody think something like this is possible in a few days? Anybody got some articles or documents explaining the basics of how text indexing and full text search systems work? This may help - http://en.wikipedia.org/wiki/Full-text_index From giving a little help to a Rebol text indexing project, I would think that a few days is very optimistic. The user documentation for that project may give you an indication of what is likely to be involved - http://www.rebol.org/documentation.r?script=skimp.r Regards Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Is there a way to search this pascal group
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.mail-archive.com/fpc-pascal@lists.freepascal.org/ (see the search box at the top) Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal