Hi!
Are there any ready-to-use units for the parsing of config-files? (for the linux-version)
Thanx!
Michael

Mailing lists / fpc-pascal / 2001-08
12 messages · 9 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi!
Are there any ready-to-use units for the parsing of config-files? (for the linux-version)
Thanx!
Michael
you wroteHi! Are there any ready-to-use units for the parsing of config-files? (for the linux-version)
In the FCL is a unit inifiles
Peter
>Are there any ready-to-use units for the parsing of config-files? (for >the linux-version) In the FCL is a unit inifiles
My conffiles unit is on the contributed pages site. That one can also do "nested" ini, and other stuff (like Golded'ish configuration files)
Ok, ok, I might be saying something stupid, but I have just looked at your source and found this. Looks like a small bug, but...
function IsFile(const S: String): Boolean;
var
SR: SearchRec;
begin
FindFirst(S, Anyfile-directory, SR);^^^^^ Ok, so you look for any file with no-directory attribute
if DosError = 0 then
IsFile := SR.Attr and Directory 0^^^^^ This returns TRUE whenever it is a directory?
else IsFile := False;
end;Aitor
[ Charset ISO-8859-1 unsupported, converting... ]
Looks not good yes. Don't know if it is a stupid bug, or an ancient workaround for the first win32 versions.
Will check it tomorrow.
No, I think that this is related to a bug in certain Dos version where you get directories, even if you don't ask for them...
Ok, ok, I might be saying something stupid, but I have just looked at your source and…
The problem is that (anyfile-directory) include the attribute for "volume label". It's a "feature" of DOS that in this case the call also returns directories...
Ralf
Hi! Are there any ready-to-use units for the parsing of config-files? (for the…
How can i find some help how to install
shared library for RTL and other libraries ?
I am using FPC 1.0.4 on Debian 2.2 Potato.
=====
Skelet
====== http://skelet.hit.bg
____________________________________________________________ Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
How can i find some help how to install shared library for RTL and other libraries ? I am using FPC 1.0.4 on Debian 2.2 Potato.
When you have the source of the rtl you can type 'make shared'. But there were problems with the shared libraries. And there is no PIC code generated. Until everything is sorted it is not recommended to use shared libraries for production. It's currently in an experimental state.
How can i find some help how to install shared library for RTL and other libraries ? I am…
Do you know someting about corelation
analisys and can i find some programs for them ?
=====
Skelet
====== http://skelet.hit.bg
____________________________________________________________ Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
How can i find some help how to install shared library for RTL and other libraries ? I am…
Hi there,
Anyone know where to find examples on how to use ODBC and/or ADO from a Free Pascal program?
[]s, Fernando Lozano
Fernando Lozano wroteHi there, Anyone know where to find examples on how to use ODBC and/or ADO from a Free Pascal program?
ODBC should be possible to do if you have the headers for C programs; For ADO the matter is not so simple since it uses COM, and I haven't seen any FPC programs yet that use COM.
(If there are people that have COM programs, please send me some code so I can add a section to the manual on how to do it)
Michael.