Article View: borland.public.cppbuilder.nativeapi
Article #11354Re: ForceDirectories and GetLastError?
From: Remy Lebeau (TeamB)
Date: Sat, 14 Feb 2004 07:09
Date: Sat, 14 Feb 2004 07:09
20 lines
1683 bytes
1683 bytes
"bcb" <noemail@sorry.com> wrote in message news:402da586@newsgroups.borland.com... > Hmm, yes but CreateDir is called last. So that means > CreateDir does not pair well with GetLastError? CreateDir() simple calls CreateDirectory(), which does not change the last error unless an error actually occurs. A lot of functions don't change the last error when they are successful. That is why it is called the "last" error - it is the last occuring error in the calling thread. > because CreateDir was last called and if the result was > successful it should return that one No, it should not. If successful, it leave the previous last error untouched. Gambit
Technical Details
Message-ID:
<402dc7f6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<402d82e6$1@newsgroups.borland.com> <402d8c41$1@newsgroups.borland.com> <402da586@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,bd0813bfab1f48b4 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-13 23:09:15 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <402d82e6$1@newsgroups.borland.com> <402d8c41$1@newsgroups.borland.com> <402da586@newsgroups.borland.com> Subject: Re: ForceDirectories and GetLastError? Date: Fri, 13 Feb 2004 23:09:50 -0800 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <402dc7f6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076742134 67.22.138.253 (13 Feb 2004 23:02:14 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail