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 » Community » Newbie corner » read argument count/vector in GUI
read argument count/vector in GUI [message #55887] Sun, 27 December 2020 13:52 Go to next message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member

Hi,
is there any way to retrieve the arguments passed in a GUI application?

GUI_APP_MAIN {
   
    //int main(int argc, char* argv[])
    //to read argc and argv
}


thanks
Re: read argument count/vector in GUI [message #55888 is a reply to message #55887] Sun, 27 December 2020 14:09 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1077
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

This is the same as for CONSOLE_APP_MAIN:
GUI_APP_MAIN
{
    const Vector<String>& arguments = CommandLine();
    for (int i = 0; i < arguments.GetCount(); i++)
    {
   
    }
}


Klugier


U++ - one framework to rule them all.
Re: read argument count/vector in GUI [message #55889 is a reply to message #55888] Sun, 27 December 2020 15:15 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi,

thanks!
Previous Topic: margin / Report
Next Topic: Report / navigation to page number
Goto Forum:
  


Current Time: Sun Jun 16 20:27:14 CEST 2024

Total time taken to generate the page: 0.02271 seconds