S
Sven Köhler
Am 21.04.2013 14:08, schrieb Martin Gregorie:
True, from which you conclude, that the following does not apply to
Windows. That the documentation is dangerously vague - but that's
another issue.
That is just wrong!
If you use the main method instead of the WinMain as an entry point in
your programs, that is just fine. But that the CRT does the tokenization
for you, doesn't mean that the program doesn't do the tokenization by
itself. It does. This becomes even more clear, if one compares the
native Windows API (i.e. CreateProcess) for launching programs to the
unix equivalents like execv.
It says *some* operating systems. No mention of Windows.
True, from which you conclude, that the following does not apply to
Windows. That the documentation is dangerously vague - but that's
another issue.
It also says
"there are operating systems where programs are expected to tokenize
command line strings themselves" which is not Windows IME - the C, C++
and Java CLI programming interface is the same for these in UNIX, Linux,
OS-9 and Windows.
That is just wrong!
If you use the main method instead of the WinMain as an entry point in
your programs, that is just fine. But that the CRT does the tokenization
for you, doesn't mean that the program doesn't do the tokenization by
itself. It does. This becomes even more clear, if one compares the
native Windows API (i.e. CreateProcess) for launching programs to the
unix equivalents like execv.