www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/02/11:47:51

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP w/long file name support
Date: Sun, 01 Dec 1996 21:27:15 -0800
Organization: Three pounds of chaos and a pinch of salt
Lines: 33
Message-ID: <32A26892.4D86@cs.com>
References: <199612020021 DOT QAA19357 AT ridge DOT spiritone DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp102.cs.com
Mime-Version: 1.0
To: "Rodger D. Ballard Jr." <rballard AT spiritone DOT com>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Rodger D. Ballard Jr. wrote:
> 
> Statement: Windows 95 supports long file names.
> Statement(2): The access to long file names under DOS is an interrupt.
> Question: Does anyone know how to implement this under a C/C++ program in
> DJ?
> Question(2): If so could you provide a small sample code?
> Comment: Thanks for ANY responses.

Statement:  Under Windows 95, DJGPP v2.00 and higher supports long
filenames.  To use this feature, set LFN=Y from the environment or
change the "+LFN=N" line in djgpp.env to "+LFN=Y" (or delete it
altogether).  All programs compiled with DJGPP v2.00 or higher also
support long filenames in the same way.

Answer:  Download the DJGPP library sources (v2/djlsr201.zip) and browse
through the file i/o functions until you find what you are looking for. 
The libc documentation might help as well; look for the description of
"_use_lfn".

Answer(2):  See above.

You're welcome.  ;)

-- 
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W++ N++ o+ K? w(---) O-
M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++
h!() !r !y+()
------END GEEK CODE BLOCK------

- Raw text -


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