RE: op/winsystem.t - Borland too helpful
by Konovalov, Vadim other posts by this author
Jan 30 2002 12:38PM messages near this date
Re: MacOS X Issues
|
Patch from Darwin, Bbug 2785519
> > You mean change showav to showcl and use GetCommandLine()
> not argv ...
>
> Or just make it a WinMain() instead of main() and print the command
> line that is passed to WinMain() as an argument.
As I've just tested command line that is passed as argument to WinMain does
not contain program name and starts with first argument. Moreover, you must
compile that program as GUI application and thus will not be able to use it
to redirect its output (unless you will do something really complicated as
to use Console functions but in this case there will be a whole bunch of
problems where Win95 will behave differently than WinNT).
Another my thought is to ignore 0th argv and pass as first argument program
name to that small program, so Borland-provided argv[0] will be ignored.
Best wishes,
Vadim.
|