Re: [fpc-pascal] Free Pascal Directories

2014-10-04 Thread Sven Barth
Am 04.10.2014 00:03 schrieb Tomas Hajny xhaj...@hajny.biz: On 3 Oct 14, at 23:53, Sven Barth wrote: Am 03.10.2014 03:37 schrieb Philippe phili...@quarta.com.br: @cfg I read about that option in a previous message of the thread ... clearly a better ideia!!! ... I´ll use it for

Re: [fpc-pascal] Windows type library files

2014-10-04 Thread Adriaan van Os
Sandro Cumerlato wrote: Excellent, but sadly some libraries rely on OleCtrls and StdVCL. I assume that's only for a few type declarations, because it's unlikely that Windows system libraries depend on Delphi for their implementation. But this does require some manual editing. Regards,

Re: [fpc-pascal] TIniFile: how to save bool as string?

2014-10-04 Thread Reinier Olislagers
On 03/10/2014 21:16, silvioprog wrote: When I use the TIniFile to save my configurations, it saves the boolean values as 0 and 1. Is there any way to save these values ​​as string (true/false) instead of integer (0/1)? If not, can I send a patch to implement that?! 1. Write your own

Re: [fpc-pascal] TIniFile: how to save bool as string?

2014-10-04 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 03/10/2014 21:16, silvioprog wrote: When I use the TIniFile to save my configurations, it saves the boolean values as 0 and 1. Is there any way to save these values as string (true/false) instead of integer (0/1)? If not, can I send a patch to implement that?! 1.

Re: [fpc-pascal] Free Pascal Directories

2014-10-04 Thread Graeme Geldenhuys
On 2014-10-02 18:21, Brian wrote: Is there any way to tell the compiler to just link existing .ppu and .o files ? Yes. In the case of fpGUI (as as an example), the fpgui/src/build.bat or build.sh builds the fpGUI framework and places the compiled units in a library output directory

Re: [fpc-pascal] Free Pascal Directories

2014-10-04 Thread Graeme Geldenhuys
On 2014-10-02 19:23, Brian wrote: When the helloworld.pas file is compiled using Geany Take a look at the fpgui/docs/INSTALL.txt file. There I explain how to setup and use fpGUI with various IDE's and editors. Maybe some of that information can be applied to Geany. Sorry I have never used Geany

[fpc-pascal] I can't compile gvector.pp in package fcl-stl

2014-10-04 Thread Kiên Nguyễn Tiến Trung
Hello, I can't compile following file https://github.com/graemeg/freepascal/blob/master/packages/fcl-stl/src/gvector.pp I want to use this unit because fcl-stl in fpc-2.6.4 is very old. Can you show me the way to compile above file? Thank you. ___

Re: [fpc-pascal] TIniFile: how to save bool as string?

2014-10-04 Thread Graeme Geldenhuys
On 2014-10-03 20:16, silvioprog wrote: Is there any way to save these values ​​as string (true/false) instead of integer (0/1)? Yes, simply create a descendant of TINIFile, override the WriteBool() virtual method and use BoolToStr() instead of BoolToChar() in its implementation. The same then

[fpc-pascal] Syserrormessage, parameter data type

2014-10-04 Thread Jürgen Hestermann
In my programs I use this code quite often: SysErrorMessage(GetLastError); But recently my program had a range check error which let me have a look at the definiton of the 2 functions GetLastError and SysErrorMessage. GetLastError is from the WinAPI:

Re: [fpc-pascal] I can't compile gvector.pp in package fcl-stl

2014-10-04 Thread Sven Barth
Am 04.10.2014 13:17 schrieb Kiên Nguyễn Tiến Trung kc97...@gmail.com: Hello, I can't compile following file https://github.com/graemeg/freepascal/blob/master/packages/fcl-stl/src/gvector.pp I want to use this unit because fcl-stl in fpc-2.6.4 is very old. Can you show me the way to

Re: [fpc-pascal] I can't compile gvector.pp in package fcl-stl

2014-10-04 Thread Kiên Nguyễn Tiến Trung
Thank you. I'll wait for fpc-2.8.0. 2014-10-05 4:10 GMT+07:00 Sven Barth pascaldra...@googlemail.com: Am 04.10.2014 13:17 schrieb Kiên Nguyễn Tiến Trung kc97...@gmail.com: Hello, I can't compile following file