in reply to Win32API::Registry -- RegOpenKeyEx fails when called 2 times.

Your presentation is a bit confusing, but it appears to me that it fails the same way both times. So you provide no evidence that "2 times" has anything to do with your problem.

My guess is simply that CurrentVersion is a subkey of LMachine/Software/ActiveState/ActivePerl, not a value. If so, that would make sense why trying to open a value named "CurrentVersion" would give you the "not found" error.

- tye        

  • Comment on Re: Win32API::Registry -- RegOpenKeyEx fails when called 2 times. (subkey ne value)