语言

Menu
Sites
Language
How to Access Arguments from SDB Launch_app?

Is it possible to access the the arguments passed from SDB launch_app command?

I would like to be able to access these arguments after the app is launched (for example OnAppInitializing() call)

e.g, launch_app 9xssmz3PAv.XYZ -s 2 -d 3 -p /opt/xyz/data.xml

Thanks

 

 

 

响应

1 回复
Alex Dem

Hi
These args should come in OspMain() method in total with default arguments. OspMain() is App entry point. You could try extract needed args from pArgv[] array in OspMain. There are: argc is amount, *pArgv[] pointer to array of args.
But I dont know exact(good) way to obtain these args in OnAppInitializing() directly.
Alexey.