From: Floyd Smith Date: 2002-11-02T04:56:15+09:00 Subject: Re: exerb & fox-problem; converting gui-script to .exe on windows Compatibility mode is only available in XP I think. It supposedly allows you program to run as it were started in another version of Windows such as Win98 or NT. The problems that I have encountered with exerb generated executables were overcome by using this option. Floyd On Sat, 2 Nov 2002 04:33:08 +0900, Armin Roehrl wrote: >Am Dienstag, 29. Oktober 2002 03:50 schrieb Floyd Smith: >> Have you tried running your executable in compatibility mode on >> XP? That has worked for me on some exerb executables. > >Apologies -- I am not a windows-person. >What does "compatability" mode mean? >I only have windows 2000 here. What would >compatability mode mean in that context? > >Thanks, > Armin > >> Floyd >> >> On Tue, 29 Oct 2002 01:10:23 GMT, "ursus major" >> >> wrote: >> >Folks: >> > >> >I have latest available of ruby, tk, and exerb on windows xp. I can get >> > the exerb examples to work. I cannot get /any/ Tk script to work, even >> > the simplest 'Hello'. Always get 'abnormal termination' error. >> > >> >Alan Walkington >> > >> >"Armin Roehrl" wrote in message >> >news:200210281602.38756.armin@xss.de... >> > >> >> Hi, >> >> >> >> I left unix and tried sth. on windows as I need >> >> to ship one .exe for windows-land. >> >> >> >> I installed the magic 1-click installer >> >> (ruby -v says 1.7.2; 2002-07-02) >> >> and exerb-2.2.0 >> >> >> >> Maybe I installed the wrong versions >> >> or need to set some magic variable. >> >> >> >> Any help would be highly appreciated. >> >> >> >> first problem: >> >> I look at .example/example3.rb >> >> -- >> >> cd example >> >> ruby sample3.rb #works >> >> ruby -r exerb/mkrbc sample3.rb #works >> >> exerb.rb -c gui sample3.rbc # works >> >> sample3.exe # a window pops open .. LoadError >> >> # no such file to load vr/contrib/vrwincomponent >> >> # in example/vr/contrib vrwincomponent.rb does >> > >> >exist >> > >> >> -- >> >> >> >> 2nd problem: >> >> I tried out a simple fox hello world skript >> >> --Ruby code: fxtest2.rb--- >> >> require "fox" >> >> >> >> include Fox >> >> application = FXApp.new("Hello", "FoxTest") >> >> application.init(ARGV) >> >> main = FXMainWindow.new(application, >> >> "Hello", nil, nil, DECOR_ALL) >> >> FXButton.new(main, "&Hello, World!", nil, >> >> application, FXApp::ID_QUIT) >> >> application.create >> >> main.show(PLACEMENT_SCREEN) >> >> >> >> application.run >> >> --- >> >> >> >> ruby fxtest2.rb #works >> >> ruby -r exerb/mkrbc fxtest2.rb #works >> >> exerb.rb -c gui fxtest2.rbc #works >> >> fxtest2.exe #abnorminal termination >> >> >> >> If s.b. has sample3.rb of fxtest2.rb working, >> >> please provide exact versions of exerb and ruby >> >> used and also info whether I must set any variables >> >> manually. >> >> >> >> Thanks, >> >> -Armin. >> >> >> >> ----------------------------------------------- >> >> Armin Roehrl, http://www.approximity.com