Home » U++ Library support » U++ Library : Other (not classified elsewhere) » access to raw command line parameters
Re: access to raw command line parameters [message #3875 is a reply to message #3869] |
Wed, 05 July 2006 09:04   |
|
dr_jumba wrote on Tue, 04 July 2006 12:21 | Hi,
Is there exist an easy way to access to command line parameters passed to GUI_APP?
What I need is to pass these parameters to 3rd party library init function.
E.g.
SuperLibInit(argc, argv);
Thanks.
|
It seems there is no way to access that variables directly, but you can get command line parameters into string vector using CommnadLine() function:
const Vector<String> &cmd = CommandLine();
int cnt = cmd.GetCount();
const char **argv = new const char*[cnt];
for(int i = 0; i < cnt; i++)
argv[i] = cmd[i];
SuperLibInit(cnt, argv);
|
|
|
Goto Forum:
Current Time: Sat Jul 05 07:03:39 CEST 2025
Total time taken to generate the page: 0.02872 seconds
|