Article View: borland.public.cppbuilder.nativeapi
Article #5370Re: CreateFile failed
From: Andrue Cope [TeamB]
Date: Thu, 08 Sep 2005 10:43
Date: Thu, 08 Sep 2005 10:43
18 lines
1551 bytes
1551 bytes
sam wrote: > Why CreateFile failed for opening an existing file ? > I use this code and CreateFile returned that the file g_sFileName > doesn't exists, but it really exists ! What value does 'g_sFileName' have? If it doesn't contain a fully qualified path (ie; drive and directory path) then have you correctly set the current working directory? tbh, my advice to anyone would be to always use fully qualified paths. The concept of a current working directory is more trouble than it's worth in 99% of cases and I won't personally have any truck with it. -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<43201579$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43201217$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b57f9555954251b7 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> Subject: Re: CreateFile failed Newsgroups: borland.public.cppbuilder.nativeapi References: <43201217$1@newsgroups.borland.com> Date: Thu, 8 Sep 2005 11:43:06 +0100 User-Agent: XanaNews/1.17.5.9 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <43201579$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126176121 217.207.223.34 (8 Sep 2005 03:42:01 -0700) Lines: 18 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail