Article View: borland.public.cppbuilder.nativeapi
Article #194Re: CreateFile to open a file already opened
From: Remy Lebeau (TeamB)
Date: Wed, 02 Jul 2008 16:14
Date: Wed, 02 Jul 2008 16:14
19 lines
1495 bytes
1495 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:486b71d7$1@newsgroups.borland.com... > Finally I have this code I am using (not my code) > and is WinAPI and try to open the file similar to the > read operation above BUT IT FAILS!! What does GetLastError() return when CreateFile() fails? Since you are using relative paths, not absolute paths, I ma guessing that the API code is trying to open a file that does not actually exist. > Or, is an int FileHandle like what you see in 2nd line the > same as the HANDLE in the third. Yes. Gambit
Technical Details
Message-ID:
<486bad42$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<486b71d7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d59c8fd30fdb585e X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <486b71d7$1@newsgroups.borland.com> Subject: Re: CreateFile to open a file already opened Date: Wed, 2 Jul 2008 09:14:05 -0700 Lines: 21 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <486bad42$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1215016258 207.178.157.90 (2 Jul 2008 09:30:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail