I can't make GUI examples work

3 views
Skip to first unread message

prz...@poczta.onet.pl

unread,
Aug 11, 2008, 4:49:43 PM8/11/08
to wxJavaScript
Hello,

I'm newbie and stumbled upon your site to get WXJS and teach myself
Javascript this way.

I exctracted the packed in C:\DEV\JS\WXJS directory.

Non-gui examples work fine.
When I try any of GUI examples I get this or similar messages:

C:\DEV\JS\wxjs\bin>wxjs ..\samples\gui\about.js
08:13:30: wxJS: UTF-8 encoding is used
08:13:30: wxJS: Running Scriptfile C:\DEV\JS\wxjs\bin\modules.js
08:13:30: C:\DEV\JS\wxjs\modules\wxjs_tpl.dll is loaded.
08:13:30: wxJS: 1 context(s) pooled
08:13:30: C:\DEV\JS\wxjs\modules\wxjs_sqlite.dll is loaded.
08:13:30: wxJS: free context found
08:13:30: C:\DEV\JS\wxjs\modules\wxjs_io.dll is loaded.
08:13:30: wxJS: free context found
08:13:30: wxJS: free context found
08:13:30: wxJS: Running Scriptfile C:\DEV\JS\wxjs\samples\gui\about.js
08:13:30: Error: wxJS: C:\DEV\JS\wxjs\samples\gui\about.js(8) :
ReferenceError:
wxAboutDialogInfo is not defined
08:13:30: Error: Evaluating script failed


It's the same if I do bin\wxjs samples\gui\about.js.

I have VC 2008 installed , so I didn't install VCREDIST package.

Thanks in advance
Looking forward to use your neat tool !

Przem

franky...@gmail.com

unread,
Aug 11, 2008, 5:04:18 PM8/11/08
to wxJavaScript
You didn't load the gui module in modules.js
Add the following in modules.js:

wxjs.modules.gui = new Module("../modules/wxjs_gui.dll");
wxjs.modules.gui.load();

Franky.

prz...@poczta.onet.pl

unread,
Aug 12, 2008, 2:51:37 AM8/12/08
to wxJavaScript
Thanks !

That did the trick !
> Franky.- Ukryj cytowany tekst -
>
> - Pokaż cytowany tekst -
Reply all
Reply to author
Forward
0 new messages