Mail Archives: djgpp/1996/12/02/11:47:51
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 -