From: bbiker Date: 2009-08-11T11:25:12+09:00 Subject: Re: Error in Vista On Aug 10, 2:02 pm, "Nation, Carey" wrote: > GetProcAddress is a call that dynamically loads a dll and gets you a > pointer to the named entry point.  SetConsoleCommandHistoryMode looks > like an undocumented function, and subject to anything that the folks in > Redmond choose to do to it.  I'm guessing that it disappeared in Vista. > > > > -----Original Message----- > From: eric.ram...@cbc-companies.com > > [mailto:eric.ram...@cbc-companies.com] > Sent: Monday, August 10, 2009 1:47 PM > To: ruby-talk ML > Subject: Error in Vista > > When creating a ruby script (using Watir) on XP then using > rubyscript2exe.rb to create it as an EXE, I receive the following error > on the Vista machine: > C:\Users\Bob.Smyph\Documents>Ruby AccessWeb.rb > c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console.rb:7 > 6:in > `initialize': GetProcAddress: SetConsoleCommandHistoryMode or > SetConsoleCommandHistoryModeA (RuntimeError) >         from > c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console.rb:7 > 6:in > `new' >         from > c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console.rb:7 > 6 >         from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' >         from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' >         from > c:/ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.1/lib/win32/process.rb: > 6 >         from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' >         from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' >         from > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/ie-process.rb:1 >         from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' >         from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' >         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir.rb:47 >         from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in > `gem_original_require' >         from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in > `require' >         from AccessWeb.rb:1 > > Any help would be greatly appreciated. > > -bobsmyph > -- > Posted viahttp://www.ruby-forum.com/.- Hide quoted text - > > - Show quoted text - rubyscript2exe does not work with ruby-1.8 or later. It appears that it is no longer maintained ... sorry to say. If you are on Windows then use 'ocra'. Works great with all versions of Ruby. Try 'crate' for other platforms ... I have not tried it. Hope that this helps.