ID3COM - can't write to id3v2 tag
Brought to you by:
t1mpy
Hi,
I'm trying to write ID3v2 tags but the assignment
doesn't seem to be remembered.
ie
oFrame.Field(ID3_FIELD_TEXT).Text(1) = "Whatever"
if i then try to msgbox the contents
MsgBox oFrame.Field(ID3_FIELD_TEXT).Text(1)
i get the old value - as if assignment never took place.
therefore the .saveV2Tag assignment doesn't work as
it's got nothing new to write.
Could you please help me sort this out.
Thanks
Alec
Logged In: YES
user_id=743955
The assignment works for me. Have you tried this method:
ID3_Frame newFrame;
newFrame.SetID(frame);
newFrame.Field(ID3FN_TEXTENC) = ID3TE_ASCII;
newFrame.Field(ID3FN_TEXT).Add("Whatever");
m_Tag.AddFrames(&newFrame, 1);
I believe you need to make the call to AddFrames() in order
to commit your changes.
/ mark
Logged In: YES
user_id=474602
See my SimpleID3 project
(http://sourceforge.net/projects/simpleid3). It provides .NET
and COM interfaces for id3lib.
Logged In: YES
user_id=1154059
I am having this problem too. Its as if you assign it a
text value, but after the assignment has happened, I check
it by using MsgBox oFrame.Field(ID3_FIELD_TEXT).Text(1) and
it returns the old value as you have described. I think
that ID3Com needs to be updated.
szamrej: this doesnt help, that might work if I was
strictly using id3lib. Any help with id3com would be
appreciated. Thanks.