Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using TRegistry.

Status
Not open for further replies.

zikar

Programmer
Oct 10, 2000
31
JP
Hello,

I use the TRegistry class, to develop a small tool where I need to search the Registry data base. It works at 90 percent, but I get some keys where even though there are three subkeys named : 0000, 0001 and 0003;
GetKeyInfo(KeyInfo); returns 0 in the the field : KeyInfo.MaxSubKeyLen
where it should be 4. Does anyone know about this problem ?

KeyInfo.NumSubKeys contains 3 as it should though.
After that the GetKeyNames method gets a bunch of empty strings as we might expect and this is where my problem is.

Thanks for any tip or suggestion.

Michel
 
I'm not sure about this, but maybe the functions is adding the predeterminated registry value.

--- LastCyborg ---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top