delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/06/02:10:36

From: "Joe Hagen" <jdhagen AT chorus DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What is the canonical way to find out if a file exists (in g++)?
Date: Wed, 5 Jan 2000 23:26:16 -0600
Organization: Chorus Netwoks
Lines: 29
Message-ID: <85192k$rbo$1@news.chorus.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000105111921 DOT 7920d-100000 AT is> <slrn8779f6 DOT 3vvou4b DOT mad AT asylum DOT fasttrack DOT net> <850gep$epu$1 AT news DOT chorus DOT net> <slrn877j7v DOT 3vvm4ub DOT mad AT asylum DOT fasttrack DOT net>
NNTP-Posting-Host: a32-28.madison.chorus.net
X-Trace: news.chorus.net 947136404 28024 216.165.151.220 (6 Jan 2000 05:26:44 GMT)
X-Complaints-To: abuse AT chorus DOT net
NNTP-Posting-Date: 6 Jan 2000 05:26:44 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Mike,

   NT doesn't have native support for the extended LFN
(long file name) INT 21 file I/O calls (the 71XX services) which
provide the support under '95 and '98.

   There is a utility that you can run in a Command Prompt
under NT that will load these services by using a VDD
(Virtual Device Driver),  but it does slow the session down because
it has to route the 16 bit calls through the VDD.  This tends
to consume a lot of CPU time.

   After loading this driver in that session, a 16 bit program
running in that session will be able to handle long filenames.

   You can go to this site and check out the info about LFN for NT:

                     http://www.cybertrails.com/~fys/longfile.htm

Joe
jdhagen AT chorus DOT net

>
> Is there any way that I can find files with long file names?
> I tried findfirst (), which is supposed to work with long file names,
> with no joy.



- Raw text -


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