Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 203
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: 203
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: Sun Jun 23 09:55:43 CEST 2024

Total time taken to generate the page: 0.02185 seconds