Can't get example to work....
- From: Brad <bradaskins@xxxxxxxxx>
- Date: Wed, 03 Oct 2007 13:38:42 -0000
Hello,
I must be doing something wrong but I don't know what. I'm trying to
use this example to learn more about the Win32API::Registry library.
require 'win32/registry.rb'
$VERBOSE = nil
appList = []
Win32::Registry::HKEY_LOCAL_MACHINE.open('SOFTWARE\Microsoft\Windows
\CurrentVersion\Uninstall') do |root|
root.each_key do |k|
Win32::Registry::HKEY_LOCAL_MACHINE.open(root.keyname + "\\#{k[0]}")
do |key|
key.each do |i|
if i[0] == "DisplayName"
appList.push(i[2])
end
end
end
end
When I run it I get: uninitialized constant Win32>
How do I fix this?
Thank you.
Brad
.
- Follow-Ups:
- Re: Can't get example to work....
- From: lrlebron@xxxxxxxxx
- Re: Can't get example to work....
- Prev by Date: Re: Searching through a sorted array
- Next by Date: Re: Reference vs. Reference
- Previous by thread: win32 binary of mod_ruby
- Next by thread: Re: Can't get example to work....
- Index(es):
Relevant Pages
|