🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cannot retrieve file date

#863
From: Asger Joergensen
Date: Wed, 02 Jan 2008 21:00
14 lines
1210 bytes
Hi Jos 
 
 Jos says:
> What went wrong?
> 
>  _FILETIME f1;
>   FILE*han1=fopen("J:\\Projects\\test1.h","r");
>   res=GetFileTime(han1,  &f1,NULL,NULL);

You need to use the Win API CreateFile toget the handle of the file

Kind regards
Asger
Technical Details
Message-ID: <MPG.21e619e2d03d090c9899be@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <hfonn3l8o175ht0j11i9d4q5msanpr6apt@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4011bf1b28cc5925
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Asger Joergensen <junk@Asger-P.dk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Cannot retrieve file date
Date: Wed, 2 Jan 2008 22:00:37 +0100
Message-ID: <MPG.21e619e2d03d090c9899be@newsgroups.borland.com>
References: <hfonn3l8o175ht0j11i9d4q5msanpr6apt@4ax.com>
Organization: Asger-P
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: 83.73.201.25
X-Trace: newsgroups.borland.com 1199307758 83.73.201.25 (2 Jan 2008 13:02:38 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail