NewBie Doubt

  • Thread starter Thread starter Amrro
  • Start date Start date
A

Amrro

Hi,

I am a C# developer but new to VC, I need some help, I need to read the
console arguments and need to convert in a array of string,

Ex:
C:> myTool -out c:\in -in c:\out#c:\out1#c:\out2

I need to read every string in -in as separate, Please help me regarding
this.

Amrro
 
For a console app. normaly the main entry point looks like this:
void main(int argc, char **argv)

argc is a count of all arguments (including the executable itself)

argv points to an array containing the original command-line arguments
passed to main when the program starts.
 
Back
Top