0

I am trying to pass command line parameters in Debug mode in one VC++ 2008 solution as described here Debugging with command-line parameters in Visual Studio. The thing is that somehow actually VC++ is not passing the parameteres because I always get 1 for "argc" variable. Is anything else that should be enabled or what could prevent VC++ passing the parameter?

In my configuration, under the Debug profile, in the Debuggin option of the project holding the "main" function I added the Command Arguments option as: "-c myconfigfile.txt".

Thank you very much in advance!!!

Community
  • 1
  • 1
Julen
  • 1,574
  • 3
  • 22
  • 38
  • I forgot I set up a "Hello World!" test passing command line arguments and it works. By the way the main function is defined like this: int main(int argc, char *argv[]). – Julen Jun 04 '10 at 08:38

1 Answers1

1

I solved it. It was quite stupid thing in fact. The thing is that the project with the "main" file was not set as start-up project.

Julen
  • 1,574
  • 3
  • 22
  • 38