This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

lpCommandLine in Cygwin WinMain


I wonder what prompted the Cygnus people to change the standard WinMain
parameter for `lpCommandLine' so that the first substring is argv[0].

I know it makes sense, but it isn't standard.  Any program written for
Win32/95/NT assumes that the first substring of `lpCommandLine' is
argv[1].

It seems like such an easy fix to change the specs document so that the
windows subsystem option doesn't include libcygwin.a automatically.  If
I want to write a Windows program, I don't assume the presence of Unix
functions.  I assume that, if I include, e. g., stdio.h, the linking
process should crash, not succeed.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]