delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/13/19:52:32

Message-ID: <373B5F02.6D1E949B@unb.ca>
Date: Thu, 13 May 1999 19:23:46 -0400
From: Endlisnis <s257m AT unb DOT ca>
X-Mailer: Mozilla 4.51 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com
Subject: Re: GetShortPathName() or DLL support
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990513155951 DOT 12629J-100000 AT is>
X-Info: BrunNet, Inc. 888-278-6638
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:

> On Wed, 12 May 1999, Edward F. Sowell wrote:
> > MFC has a GetShortPathName() function that, obviously, converts a
> > path with long file names, spaces, etc to the 8.3 format. This is
> > often needed because some functions don't accept the funny file
> > names... e.g., spawnxx().
>
> You don't need this in DJGPP: when you call `spawnXX', the DJGPP
> version automatically converts the long file name to the short one
> before passing it to DOS.

    That's not really 100% true.  I haven't checked, but I'm guessing that
spawnXX just truncates to 8.3 format.  What about NameNumericTail?  Also,
there are ways to convince DOS 7.x to make a 8.3 filename that isn't just a
simple truncation or a numeric tail of a long filename.  I don't think spawnXX
would work under these conditions.

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT HotMail DOT com
          ICQ: 32959047




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019