views:

123

answers:

1

Hello,

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!!!

A: 

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