🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cannot retrieve file date

#864
From: Remy Lebeau (TeamB)
Date: Wed, 02 Jan 2008 21:02
17 lines
1479 bytes
"Jos�" <jose@127.0.0.1> wrote in message 
news:hfonn3l8o175ht0j11i9d4q5msanpr6apt@4ax.com...

> What went wrong?

You cannot pass a C runtime FILE* handle to a Win32 API function.  You need 
to use the Win32 API CreateFile() function instead of the C runtime fopen() 
function.

> The file exists, han1 is not zero and the file can be read.
> But GetFileTime returns an error.

Because you are not passing a valid Win32 API file handle to it.


Gambit 
Technical Details
Message-ID: <477bfc32$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <hfonn3l8o175ht0j11i9d4q5msanpr6apt@4ax.com>
Subject: Re: Cannot retrieve file date
Date: Wed, 2 Jan 2008 13:02:06 -0800
Lines: 19
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <477bfc32$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1199307826 207.178.157.90 (2 Jan 2008 13:03:46 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail