[wxruby-users] xrcise question
Heinrich Piard
lists at ruby-forum.com
Sun Nov 16 10:36:35 EST 2008
Mario Steele wrote:
> Try changing the line for the loading of the XML resource file from:
>
> xml.load("wxFormBuilder\noname.xrc")
>
> To:
>
> xml.load("wxFormBuilder/noname.xrc")
>
> Thankfully, to Ruby and wxWidgets, it doesn't really need you to use the
> \
> slash to access a file path.
>
> Often times, it's better to run xrcise as such:
>
> xrcise -o noname.rb wxFormBuilder/noname.xrc
>
> This way, doesn't matter if it's on Windows, or Linux, it will be able
> to
> find the resources just fine.
Hi Mario,
changed it but still get this message.
10:33:15: Error: Cannot load resources from file
'file:/C%3A/ruby/ruby_scripts/wxFormBuilder/nonam.xrc'.
c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wx/classes/xmlresource.rb:31:in
`load': Failed to load XRC from 'wxFormBuilder/nonam.xrc'; check the
file exists and is valid XML (RuntimeError)
from test.rb:23:in `initialize'
from test.rb:51:in `new'
from test.rb:51:in `initialize'
from test.rb:54:in `new'
from test.rb:54
Thanks!
bye
Henry
--
Posted via http://www.ruby-forum.com/.
More information about the wxruby-users
mailing list