Re: [Dev-C++] How to set program arguments?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2002-08-28 15:09:21
|
> > I do not think it runs. > > > Yes it works, but not as mudeth wrote it. > > I made this tiny modification to his code and it runs ok for me here : > > argv[1]="-output"; > argv[2]="foo.bar"; > for(int i=0;i<=2;i++) > cout<<argv[i]; > > And of course, argv[0] is initialised with the exec name by the > application itself. > > But however, it would be nice to get a menu option to set these startup > parameters instead of doing this not-so-clean hack. > > Kind regards > > Seb Sorry for that, I didn't test it. I hope the feature is added to the next version of Dev. I remember requesting this sometime back... nobody ever pays any attention to me... <sniff> |