Home » Developing U++ » U++ Developers corner » controlling the startup of a program (control of how an application has been loaded)
controlling the startup of a program [message #58841] |
Fri, 16 September 2022 22:10  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
Hi,
is there a global/constant variable that tells me whether the desktop program or a skylark server has been loaded by theide or not (in this case it is already in production)?
thanks!
|
|
|
Re: controlling the startup of a program [message #58850 is a reply to message #58841] |
Sat, 17 September 2022 13:35  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
HI,
solution to my problem! (in good IDE this option is traditional!)
In theide, in the main menu, in the option
Debug, run Options and in the Program arguments field, enter a content (as an example: load_by_ide) that will start the control I need. So if you run that program, outside theide, this argument will not be displayed!
String s;
const Vector<String>& arguments = CommandLine();
for (int i = 0; i < arguments.GetCount(); i++)
{
s << arguments[i];
}
//...................................
Cout() << "argumentos: " << s << EOL;
//...................................
Thanks TheIDE!
|
|
|
Goto Forum:
Current Time: Sun May 11 01:50:39 CEST 2025
Total time taken to generate the page: 0.00990 seconds
|