🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11352

Re: ForceDirectories and GetLastError?

#11352
From: bcb
Date: Sat, 14 Feb 2004 04:35
15 lines
1652 bytes
Hi Remy :)

> > but I'm also wondering why the second piece of code shows
> > the same messages when CreateDir is called last
>
> Because the second piece of code is also calling DirectoryExists().

Hmm, yes but CreateDir is called last. So that means CreateDir does not pair
well with GetLastError? because CreateDir was last called and if the result
was successful it should return that one, just as it can return a successful
result when using DirectoryExists, but then again GetLastError should return
any errors and those supersede the successful return CreateDir had? Though
that's easily fixed by just reading the return value from CreateDir.

Perhaps this will appear more clearer tommorow morning.
Technical Details
Message-ID: <402da586@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-mail
References: <402d82e6$1@newsgroups.borland.com> <402d8c41$1@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 20:39:49 PST
From: "bcb" <noemail@sorry.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <402d82e6$1@newsgroups.borland.com> <402d8c41$1@newsgroups.borland.com>
Subject: Re: ForceDirectories and GetLastError?
Date: Fri, 13 Feb 2004 23:35:22 -0500
Lines: 17
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: 24.184.196.112
Message-ID: <402da586@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076733318 24.184.196.112 (13 Feb 2004 20:35:18 -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