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, Adria

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 wra

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?

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 /src/build.bat or build.sh builds the fpGUI framework and places the compiled units in a library output directory /lib/ The examp

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 /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 myse

[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. ___ fp

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 the

[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" : > > 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 abo

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 : > Am 04.10.2014 13:17 schrieb "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 t