ID3 Tag Help

This is a discussion on ID3 Tag Help within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm trying to use id3lib to edit ID3 tags, however I don't know how to do it! By that ...

  1. #1
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183

    ID3 Tag Help

    Hi,

    I'm trying to use id3lib to edit ID3 tags, however I don't know how to do it! By that I mean I don't know how to include the libraries and whatever else I'm supposed to do. I can't find anywhere that says how to do this! I know it may be a simple thing, but does anyone know what to do? Thanks in advance.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243

  3. #3
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    Thanks, but the real problem is that I don't know how to install/link the libraries. I tried but when I tried to compile it it gave me:
    Code:
    error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall ID3_Tag::~ID3_Tag(void)" (__imp_??1ID3_Tag@@UAE@XZ) referenced in function _main
    Anyone know what to do?

  4. #4
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,473
    It depends on your IDE
    in most cases - enter the project properties
    Find linker tab
    something like "Additional libraries" field and add there the id3lib.lib name
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  5. #5
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    How would I do that in Visual C++ (the program)?

  6. #6
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    There's this text file that's included (attached to this post) but it doesn't make any sense! For example:
    Code:
    2) include libprj/id3lib.dsp and zlib/prj/zlib.dsp to your workspace
    3) make your project dependend on id3lib, and make id3lib dependend on zlib
    (id3lib and zlib are projects that were included). Hope this helps.
    Attached Files Attached Files

  7. #7
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    Well, I figured out what making them depend on each other and adding them meant, but now I get a slew of error messages when I try to compile - they mostly say something like "such-and-such already defined in such-and-such.lib(such-and-such.dll)". That's what all of them say. Now in the last paragraph of the "instructions", it says:
    7) Try to compile, and see if you need any of the following:
    (debug) /nodefaultlib:"msvcprtd" or(release) /nodefaultlib:"msvcprt"
    (debug) /nodefaultlib:"MSVCRTD" or(release) /nodefaultlib:"MSVCRT"
    (debug) /nodefaultlib:"libcd" or(release) /nodefaultlib:"libc"
    different programs may require different 'nodefaultlib' 's, or none at all, these worked for me.
    If none you try work, revert to C)
    I have tried adding those to Project>Properties>Linker>Input>Ignore Specific Library (that was the only place I could find something about those), but it has no effect. I'm still very confused, any help would be appreciated. Please answer soon.

  8. #8
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    Please, can anyone help me? I am really confused. If anyone knows a better way to edit/read the ID3 tag, please tell me - all that I need to know is how to read/edit the album art.

    Also, I found an older version of this in a single .DLL file, and I could use that if anyone could tell me how to do it - I am using Visual C++ 2008 Express Edition.


    Ok, forget everything I've asked before this, I found out that I can't get Album Art with that anyway. Can anyone tell me whether or not it's possible to get album art with c++? That's all I want to know. If you do know, please tell me or give a link. Thanks.
    Last edited by mikeman118; 09-18-2007 at 04:36 PM.

  9. #9
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    Ok I've found this info about how the ID3 tags are saved; however, I don't know what all the stuff about "MIME" is, can anyone shed some light on it?
    This frame contains a picture directly related to the audio file. Image format is the MIME type and subtype for the image. In the event that the MIME media type name is omitted, "image/" will be implied. The "image/png" or "image/jpeg" picture format should be used when interoperability is wanted. Description is a short description of the picture, represented as a terminated textstring. The description has a maximum length of 64 characters, but may be empty. There may be several pictures attached to one file, each in their individual "APIC" frame, but only one with the same content descriptor. There may only be one picture with the picture type declared as picture type $01 and $02 respectively. There is the possibility to put only a link to the image file by using the 'MIME type' "-->" and having a complete URL instead of picture data. The use of linked files should however be used sparingly since there is the risk of separation of files.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Apache Ant XML tag reference?
    By cpjust in forum Tech Board
    Replies: 6
    Last Post: 09-23-2008, 10:20 AM
  2. id3 tag editor
    By fuz30 in forum C Programming
    Replies: 1
    Last Post: 09-21-2008, 02:45 PM
  3. cache tag calculation
    By xddxogm3 in forum Tech Board
    Replies: 1
    Last Post: 05-07-2007, 11:01 PM
  4. Code Tag Button
    By twomers in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 09-24-2006, 12:18 PM
  5. tag bits?
    By Intimd8r in forum C++ Programming
    Replies: 0
    Last Post: 07-27-2003, 02:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21