Mail Archives: djgpp/1997/09/30/09:43:46
On Tue, 30 Sep 1997, Cesar Scarpini Rabak wrote:
> fnsplit(argv[0], szDrive, szPath, szFile, NULL);
So the real problem is that argv[0] gets a UNC from Windows 95.
Actually, programs that need to use argv[0] to open files, need to be
aware of this problem and translate the UNC into a d:/path name. It is a
pain in the lower back, but I know of no other solution. One other
problem with using argv[0] on Windows 95 is that it always gets the 8+3
alias, even if the .exe has a valid long name *and* you invoked the
program using that long name. The funny thing is, this also happens for
native Win32 programs (so I am told). Looks like somebody at Microsoft
got lazy and didn't want to differentiate between DOS and Win32 programs.
- Raw text -