What happend with the 0.th parameter of the main?

  • Thread starter Thread starter =?iso-8859-1?Q?Tam=E1s_Horv=E1th?=
  • Start date Start date
?

=?iso-8859-1?Q?Tam=E1s_Horv=E1th?=

void main(int argc, char** argv)
agv[0] was always available in VC6, and generally in C++
But now it is missing in .NET, then how can I determinate
the name, and the directory of the currently runnning file?
 
Tamás Horváth said:
void main(int argc, char** argv)
agv[0] was always available in VC6, and generally in C++
But now it is missing in .NET, then how can I determinate
the name, and the directory of the currently runnning file?

Environment.GetCommandLineArgs() returns an array of strings and element [0]
is the executable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top