Get parameter from exe in C++ -


as know query string in web. it's key/value go website url ex: abc.com?myname=stack

for example in php, if want value of myname, $_get['myname']

so, in c++, how can it?

in c# pass parametter *.exe file ( exe file c++ code ). in c++ code, how parametter value .

have no idea situation, surely have realize parameters need?

  1. if need arguments command line, simple use char** argv variable. in complicated cases can use gnu getopt or boost::program_options (the last cross-platform);
  2. if trying access environmental variables, use standard getenv functions.

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -