Click to See Complete Forum and Search --> : including the argv file names


ahirz
August 20th, 2003, 08:13 PM
This is driving me crazy!

Somewhere in Visual C++ .NET there is a place to put the
names of the files you want accessed through the command
line variables (argv[]). Could someone please remind me
where this place is?

TIA - A

MooNull
August 20th, 2003, 11:28 PM
My best guess is to have your main function run with a char argv[] parameter. When you define your main functions (WinMain, main, _tmain, etc) make sure it has a space for arguments.

Another suggestion is to access command line arguments through a class that is in a namespace of .NET. Maybe System::Diagnostics... Lemme check.

ahirz
August 21st, 2003, 01:35 AM
Thanks for your help. I've got the answer - the place I was looking for is under the Property Pages:
Configuration Properties->Debugging->Command Arguments