Mail Archives: djgpp/1997/10/01/04:59:36
On Tue, 30 Sep 1997 eyal DOT ben-david AT aks DOT com wrote:
> Yes !. MSVC 5 fails to print the long name. Borland and Watcom print
> argv[0] correctly.
The startup code in Watcom/Borland probably converts argv[0] to the
long name, because Windows always passes the short alias, or so I'm
told.
> There is a Win32 API function that return the long file name.
We also have such a function: it's called `_truename'.
> I do not know why it is not used also for argv[0] -- strange.
It's probably very simple: the Exec function in Windows 95 wasn't
extended to handle long names. If so, it just doesn't have enough
space to handle 260-long pathname.
- Raw text -