ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
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.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved