Mail Archives: djgpp/1996/12/02/02:08:15
I am sorry for not being too clear on that one. This question pertains more
towards C and for instance if I wanted to make a program that supports long
file name support under a Win95 dos box. I was curious if anyone knew how
to implement this in a seperate program via DJGPP C code (I have a feeling
it would involve inline assembler, something I have never touched under
DJ.) A perfect example is this:
Construct a program that will add line numbers and colons in front of every
line in a specified file that supports long file names:
A sample run might be:
disptext this_is_the_file_name.txt
----------
> From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
> To: Rodger D. Ballard Jr. <rballard AT spiritone DOT com>
> Cc: djgpp AT delorie DOT com
> Subject: Re: DJGPP w/long file name support
> Date: Sunday, December 01, 1996 10:44 PM
>
>
> On Sun, 1 Dec 1996, 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?
>
> You are kidding, right? DJGPP v2 supports long filenames Windows 95
> style *right out of the box*! You don't need to do anything, just
> set LFN=y in the environment and run your DJGPP programs.
>
> For details, see the documentation of the `_use_lfn' library function in
> the on-line library reference (libc.inf), by typing this from the DOS
> prompt:
>
> info libc alphabetical _use_lfn
- Raw text -