INTERACT FORUM

Windows => Plug-in Development => Topic started by: nila on November 21, 2003, 05:34:54 am

Title: the SDK - Features/Documentation?
Post by: nila on November 21, 2003, 05:34:54 am
Hmm, is it just me or are there alot of things that aren't mentioned in the SDK that exist?

Like for instance:
does anyone know what:  MCFileAutomation*GetFilledTemplate does?
or where the feature to get all field names is?

I cant find it? :(


Update:

GetFilledTemplate fills a string in with the field values from MC - VERY useful - Before I was writing my own function to do this!
Title: Re:the SDK - Features/Documentation?
Post by: nila on November 21, 2003, 06:06:38 am
Also - I've just discovered:

getFileByKey - does this key give a unique reference to the song that never changes between reboots, MC restarts etc?

So that as long as I'm using that specific library I can always access the song by that specific key?

Title: Re:the SDK - Features/Documentation?
Post by: RhinoBanga on November 21, 2003, 04:27:26 pm
Why bother when the filename is already the key?
Title: Re:the SDK - Features/Documentation?
Post by: nila on November 21, 2003, 05:27:15 pm
ID is more specific to the file and it will be valid between sessions for that specific file no matter what.

Using filename as the key between sessions will fail if the file name/path changes.

Works better, has a much more fixed length and will be alot easier to manage I reckon :)
Title: Re:the SDK - Features/Documentation?
Post by: scott_r on November 22, 2003, 01:26:56 am
I would assume that the ID is assigned when the database record is created and not changed ever. Just makes sense that way. I think...

Scott.
Title: Re:the SDK - Features/Documentation?
Post by: RhinoBanga on November 22, 2003, 09:13:54 am
Nila:

Quote
Using filename as the key between sessions will fail if the file name/path changes.

So would the ID.


scott_r:

Quote
I would assume that the ID is assigned when the database record is created and not changed ever. Just makes sense that way. I think...

I agree but that's it's downfall ... if you stored the ID in your own database (expecting it to be a specific track) then they rebuilt their database then that ID will probably become invalid.   At least with the filename you have a better chance of actually getting the right track.