On Tue, 8 Jul 2003, Ronald L Fox wrote:
> Aloha, > > I'm trying to use the TRegistry object of fpc 1.0.6 for Win32 on Win2k > to check for the presence of a particular key, > 'HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys' and value > name '[EMAIL PROTECTED]:ahost.ourdomain.com'. > > I've studied the Registry unit's source from \source\fcl\inc\registry.pp > and the Borland Delphi 2.0 VCL help file but can't get anything but lies > from my code. > > A simple test program and runtime output below illustrates the problem. > No matter what I enter, the program indicates that the key exists and that > it has no subkeys and no values. Since the keys are supposed to be relative > to the base or root key, I know that there is no "nada" key but that there > is a "Software" key with many subkeys and values. > > Is this unit supposed to be functional? Any idea how I can perform this > simple existence test if Registry isn't functional? The official 1.0.6 release didn't contain a functional registry unit. However, the latest sources do contain a version that works on Windows and on Linux. You can always download the latest sources and compile the unit yourself. Michael. _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal