[fpc-pascal] Re: fpc registry unit

Sven Barth pascaldragon at googlemail.com
Fri Mar 1 22:55:50 CET 2013


On 01.03.2013 21:57, John Lee wrote:
> Thanks all for your help - found the .ppu and .o at last - I note than
> inifiles itself needs some other stupid unit! ! I think you'll agree it
> is all more than somewhat compllcated tho' - can't see why registry unit
> is part of fcl  tho - surely it is a simple routine for reading the
> registry - not rocket science- just a windows utility so should be eg in
> \rtl\ or objpas or something like that so one can easily find it and
> compile it with whatever version of fpc w/o hassle and fighting with n
> dependencies which don't add any real value.
>
> Everything should be as simple as possible... as the great man said!.

It *is* simple. When you do an installation of FPC a "fpc.cfg" is 
created where all the unit paths included with the installation are 
already included. So the only thing you need to do is to add "registry" 
to your "uses" clause, compile and be happy.

And "registry" is part of the FCL, because it is no base unit.

Regards,
Sven



More information about the fpc-pascal mailing list