INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: the SDK - Features/Documentation?  (Read 2311 times)

nila

  • Guest
the SDK - Features/Documentation?
« 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!
Logged

nila

  • Guest
Re:the SDK - Features/Documentation?
« Reply #1 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?

Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:the SDK - Features/Documentation?
« Reply #2 on: November 21, 2003, 04:27:26 pm »

Why bother when the filename is already the key?
Logged

nila

  • Guest
Re:the SDK - Features/Documentation?
« Reply #3 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 :)
Logged

scott_r

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 306
Re:the SDK - Features/Documentation?
« Reply #4 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.
Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:the SDK - Features/Documentation?
« Reply #5 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.
Logged
Pages: [1]   Go Up