U++ framework
Do not panic. Ask here before giving up.

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 Go to next message
BetoValle is currently offline  BetoValle
Messages: 206
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 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 206
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!
Previous Topic: Windows 11 toolbar and menu issues
Next Topic: Compilation of reference/SMTP
Goto Forum:
  


Current Time: Tue May 12 01:46:58 GMT+2 2026

Total time taken to generate the page: 0.00433 seconds