INTERACT FORUM

Windows => Plug-in Development => Topic started by: scthom on August 09, 2005, 09:43:10 pm

Title: MJFields.h (Input SDK) out of date?
Post by: scthom on August 09, 2005, 09:43:10 pm
version 11.0.309, Input SDK

When writing tags to a file (SetAttribute), MC uses "Year", but tries to read them (GetAttribute) using "Date".   "Date" is not a field listed in MJFields.h.  Is this normal behavior?

In addition, several other fields are used during the Update Tags from Library/Update Library from Tags functions: Band, Playback Range, Access Rating, Content ID, Content Distributor, Content Type, Disc #, Text, Album Gain, and Mix Album.  None of these are in MJFields.h either (at least not the one included in the input SDK - I note they are in the database).
Title: Re: MJFields.h (Input SDK) out of date?
Post by: John Gateley on August 10, 2005, 10:31:25 am
Year is deprecated, though still used in a few places. Date is now the preferred field name. The value is a double representing the number of days past 1900, it's an OleDateTime object. Accessing the Year field will just pull the year out of the Date field.

j
Title: Re: MJFields.h (Input SDK) out of date?
Post by: scthom on August 13, 2005, 01:03:21 am
OK, so the MJFields.h listing is, in fact, out of date.

It took me a while to figure out there were both fields.  Would have been cleaner and easier if the file was up to date in the SDK.  I assume it's #defined as MF_DATE?

(so as to future-proof my code for when you do update it)

Thanks!
Title: Re: MJFields.h (Input SDK) out of date?
Post by: John Gateley on August 15, 2005, 10:55:52 am
MF_DATE is correct

j
Title: re: MJFields.h (Input SDK) out of date?
Post by: mi5 on November 02, 2005, 03:14:31 pm
Year is deprecated, though still used in a few places. Date is now the preferred field name. The value is a double representing the number of days past 1900, it's an OleDateTime object. Accessing the Year field will just pull the year out of the Date field.

XML output has fields for DateCreated, DateModified etc.  They're
large integers.  Do you know how the format can be decoded?
Title: Re: MJFields.h (Input SDK) out of date?
Post by: JimH on November 02, 2005, 03:17:06 pm
Try a search here, but I think they're the number of minutes after a certain date.