🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cannot retrieve file date

#874
From: Jos�
Date: Wed, 02 Jan 2008 22:57
32 lines
2307 bytes
On Wed, 2 Jan 2008 14:35:00 -0800, "Remy Lebeau \(TeamB\)"
<no.spam@no.spam.com> wrote in borland.public.cppbuilder.nativeapi:

>You are reading the Win32 API help file.  It has no concept of the C runtime 
>functions.  Everything in that help files expects handles that are provided 
>by the Win32 API only.

I type a name in my source text and hit F1. I see that the layout of
the help text varies, but to me they are just information. Names like
"C runtime" and "Win32 API" are Greek to me, although it is obvious
that the former is an extra layer.

>If you read the documentation for CreateFile(), you will see that it is used 
>for both opening existing files as well as creating new files.

Well yes, you are right again. But I am pretty stupid, I do not
consider reading the documentation of CreateFile() when I do not want
to create a file. Besides, I always use fopen() to open or create a
file.

Actually, I find it even more stupid to name a function CreateFile()
if it can be used to open an existing file. But I dislike to blame
others for my misunderstanding

>> My only current solution is findfirst() . This also returns the date of a 
>> file.
>
>That is another option.

While usually it's a return value you aren't interested in.
-- 
Jos�
Technical Details
Message-ID: <qa5on3d6p24qit5hic73bl397a6pg4b9i3@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <hfonn3l8o175ht0j11i9d4q5msanpr6apt@4ax.com> <477bfc32$3@newsgroups.borland.com> <5p0on3lb068m6ob82jeg8565fmt5e2fsh4@4ax.com> <477c11fb$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4011bf1b28cc5925
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII
From: Jos� <jose@127.0.0.1>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Cannot retrieve file date
Date: Wed, 02 Jan 2008 23:57:18 +0100
Message-ID: <qa5on3d6p24qit5hic73bl397a6pg4b9i3@4ax.com>
References: <hfonn3l8o175ht0j11i9d4q5msanpr6apt@4ax.com> <477bfc32$3@newsgroups.borland.com> <5p0on3lb068m6ob82jeg8565fmt5e2fsh4@4ax.com> <477c11fb$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 4.2/32.1117
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 82.75.73.146
X-Trace: newsgroups.borland.com 1199314712 82.75.73.146 (2 Jan 2008 14:58:32 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail