> I'm the developer of the wxJavaScript project. A project that ports wxWidgets to JavaScript. I'm looking for a replacement of all NON-gui classes of wxWidgets into classes of a common library like POCO. This will make my project more useable for people that don't want to install all the wxWidgets dll's.
We certainly encourage you to use POCO. I have not looked into wx for some time, but last time I checked, POCO general-purpose facilities were definitely more complete and powerful. That being said, I hope you are aware that, if you link dynamically, your users will need POCO DLLs.
^
> One thing that must work is the way command line arguments are handled. In wxJavaScript all arguments are handled. When a name of a scriptfile is found, the handling must stop, because all arguments that follow are arguments for the script. Can the following be handled by POCO?
>
> wxjs.exe /c /r 1024 script.js /h /v
>
> "/c" and "/r 1024" must be handled by the wxjs.exe program. script.js is the scriptfile. "/h", "/v" must be passed to the script.
^
Given that 'script.js' can be anything it's impossible to handle the above case without customized parsing. If your application does not use Util::Application framework, then you can build your own
OptionSet (and figure out which switch goes where) directly from the command line.
With Util::Application framework used, as it currently stands, this will work:
- Code: Select all
wxjs.exe /c /r=1024 /s=script="script.js /h /v"
Provided you have defined all the options in your application (see
SampleApp), the above will give you a convenient script access at runtime:
- Code: Select all
std::string myScript = config().getString("script"); // myScript == "script.js /h /v"
HTH
Alex