Id3v2 tags using id3lib
-
I'm trying to write a program which needs access to the id3v2 tags in some MP3s I have downloaded and compiled id3lib from sourceforge successfully (to a dll). http://id3lib.sourceforge.net/ I am now trying to write the code in my program. I have looked at the documentation for the API online: http://id3lib.sourceforge.net/api/index.html I have tried copying some of the code snippets from the first page (that is the only help they give you!). I have tried to alter it so that it reads the TIT2 field from a sample mp3 as a test. I renamed one of my MP3s to song.mp3 put it in the directory with the compiled exe and ran the program. It should have printed the title on the screen (it is a simple console program just for testing). It doesn't but I don't know what I am doing wrong. What I would like to request is some proper sample code, with explanations, for a program which uses id3lib to read the title tag from an mp3 file and prints it to the screen. A helpful addition to make it useful to everyone would be code for writing a new title to the mp3 file. Please help :) Thankyou in advance.