Message-ID: <373B5F02.6D1E949B@unb.ca> Date: Thu, 13 May 1999 19:23:46 -0400 From: Endlisnis 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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