<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.3959" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Here's a code fragment I'm using with TagLib,
compiling in VS2003:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>pictureFrame =
static_cast<TagLib::ID3v2::AttachedPictureFrame *>
(listOfMp3Frames.front());<BR> if
(pictureFrame)<BR> {<BR> TagLib::ByteVector
bv = pictureFrame->picture();<BR> char *data =
bv.data();<BR> char *data2 =
pictureFrame->picture().data(); // <-- wrong value reported! </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The variables data and data2 should actually report
the same value, but data2 is wrong, whereas data is correct. Why is
that?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>