This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Get E_FILEINFO from packed file


Get E_FILEINFO from packed file

Postby rel1986 » Sep 10, 2009 @ 5:55pm

Hi,
I'm trying to write a small program which updates an EPK only if files added to it have been modified.

In order to do that, I want to compare the file's timestamp on the file system (retrieved by calling win32's function GetFileTime) with the timestamp of the specified file packed inside the EPK.
I found the function PackGetFileInfo, which returns an EPK_FILEINFO with filedate as the modified time in seconds (ETYPE_TIMESTAMP). But I need the file time formatted as an E_DATETIME struct (so I could compare it with win32's timestamp (after formatting it by calling FileTimeToSystemTime).

Is there a way to extract an E_FILEINFO (similar to calling GetInformation()) from a packed file?
Or some other way to get the packed file's modified time as a E_DATETIME?

Thank you in advance!
rel1986
pm Member
 
Posts: 2
Joined: Sep 10, 2009 @ 5:41pm


solved it

Postby rel1986 » Sep 13, 2009 @ 5:57pm

using ClassEStd::TimestampToDateTime()
rel1986
pm Member
 
Posts: 2
Joined: Sep 10, 2009 @ 5:41pm


Postby edge » Sep 14, 2009 @ 8:54am

Alright,

Great to hear that you've found the solution already :)
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron