From: Erik Veenstra Date: 2007-01-23T06:50:02+09:00 Subject: Re: Problem using 'AllInOneRuby' with Tk-Program (Windows 2000 and XP) > We found a problem using 'AllInOneRuby' with Tk-Program on > Windows 2000 and XP. > > 'Tcl/Tk' does work, a generated 'allinoneruby.exe' works well > with a console program, but gives an error using a small Tk > example. > > On my Windows 2000 installation the error is the same when > 'allinoneruby.exe'was generated with '--site'. An other > person has a different error message when using '--site' with > the contents, that 'GetModuleHandleExA' is not found in > 'Kernel32.dll' > > The programs work well when together with 'RubyScript2Exe', > but on my environment (Windows 2000) it is always necessary > to use '--rubyscript2exe-tk' otherwise the same error will > occur. > > What happens there? Plain RubyScript2Exe is only able to detect and embed the Ruby-TK bindings, not TK itself. By using the --rubyscript2exe-tk option, it's forced to include TK itself as well. AllInOneRuby has no --tk option. Therefore, the resulting executable still depends on a manually installed version of TK. In this case, --site is not relevant. I'll consider including a --tk option in AllInOneRuby. It's probably just copy & paste from RubyScript2Exe... ;] gegroet, Erik V. - http://www.erikveen.dds.nl/