I'm trying to make an older program work under Win7 and I'm frustrated with the registry error I get. The simple openkey worked fine under XP but creates this error now:
"Failed to set data for" the specific key name.
The problem is that OpenKey always returns false and WriteString obviously creates an error unless it's braced between if/then pair as shown. Is it a rights issue bec/ I have included a vistaTheme manifest. Reading reg works, writing does not.
myReg := TRegistry.Create;
myReg.RootKey := HKEY_LOCAL_MACHINE;
if myReg.OpenKey('SOFTWARE\myApp\', true) then