Hi,
If I want to create a application which let user customize it by using scripting language, like Excel VBA or FLASH actionScript, How to do that?
Thanks.
How to embed scripting parser like MS Excel VBA? Topic is solved
-
- I live to help wx-kind
- Posts: 194
- Joined: Mon Aug 30, 2004 1:26 pm
- Location: PA, USA
- Contact:
I would also favor wxPyhon you could write the whole GUI in wxPython instead of C++ to make it even more flexible.
-Jorgen
-Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
I would like to emb those popular scripting language like javascript or vbscript into my app. I use C/C++ to code my app. I've never learn Python or LUA before.
I know there is a project called SeaMonkey by mozilla, but i wonder if it's easy for integrating it into my app. For Java user, they can easily use Rhino.
I know there is a project called SeaMonkey by mozilla, but i wonder if it's easy for integrating it into my app. For Java user, they can easily use Rhino.
-
- I live to help wx-kind
- Posts: 194
- Joined: Mon Aug 30, 2004 1:26 pm
- Location: PA, USA
- Contact:
There's wxJS. Don't know how good it does on the embeding front, but apparently you can have it call C++ libaries, so it sounds promising, but don't know what that means for the rest of your app (like does the entire app need to be written in JavaScript to start with, then call C++ functions, or can it be written mostly in C++, and call bits of JavaScript here and there?). I don't know.
I use C/C++ to build my application, and let user use javascript to customize it. That means my app should have a internal script parser.
To the best of my knowledge, wxJS is using Javascript to build the whole application.
If you have ever use Flash, you can use ActionScript to script your flash, but the Macromedia Flash itself is not coded using ActionScript.
Likewise for Excel or Access, you can program your code using VBA. But I believe Excel or Access is not built by VBA.
To the best of my knowledge, wxJS is using Javascript to build the whole application.
If you have ever use Flash, you can use ActionScript to script your flash, but the Macromedia Flash itself is not coded using ActionScript.
Likewise for Excel or Access, you can program your code using VBA. But I believe Excel or Access is not built by VBA.
For JS you could take SpiderMonkey, its the JS Implementation from Mozilla.
You can use the wxJS ported classes by loading the modules from your application. You also need to port your application classes to JavaScript. You can use SpiderMonkey for that.Ryan Wilcox wrote:There's wxJS. Don't know how good it does on the embeding front, but apparently you can have it call C++ libaries, so it sounds promising, but don't know what that means for the rest of your app (like does the entire app need to be written in JavaScript to start with, then call C++ functions, or can it be written mostly in C++, and call bits of JavaScript here and there?). I don't know.
Use wxWidgets in JavaScript: GLUEscript