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.
 
Back
Top