Click here to Skip to main content

C / C++ / MFC

 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pinmemberyogeshs19-Feb-13 23:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 PinmvpRichard MacCutchan20-Feb-13 0:01 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pinmemberyogeshs20-Feb-13 19:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 PinmvpRichard MacCutchan20-Feb-13 22:06 
QuestionProblem Reading/Writing Registry in Windows 7? PinmemberMember 919975419-Feb-13 10:40 
AnswerRe: Problem Reading/Writing Registry in Windows 7? PinmemberDavidCrow19-Feb-13 10:50 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberMember 919975419-Feb-13 14:10 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberPeter_in_278019-Feb-13 21:48 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberMember 919975420-Feb-13 7:27 
AnswerRe: Problem Reading/Writing Registry in Windows 7? Pinmemberjschell20-Feb-13 9:11 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pinmemberjeron120-Feb-13 9:14 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberMember 919975420-Feb-13 17:31 
AnswerRe: Problem Reading/Writing Registry in Windows 7? PinmemberMax_Power_Up26-Feb-13 6:21 
QuestionUsing C++ TagLib, not TagLib Sharp - how to write APIC frames PinmemberSteve S19-Feb-13 7:32 
I'm wanting to batch edit the ID3V2 tags in around 1660 CDs worth of tracks, as I have metadata stored elsewhere.
Part of this process involves adding a APIC tag with the contents of a JPEG file.
Now, I have jumped through the various hoops to get everything working except one thing, namely, the artwork. Everything else (genre, album, track number, etc) work fine, and the tags are visible to iTunes and Windows Media Player. However, I am stumped as to how to add the artwork

I thought that the sequence

TagLib::MPEG::File f(filename);
TagLib::ID3v2::Tag*t = f.ID3v2Tag();
// code omitted to initialise the ByteVector of data from file (which I checked!)
TagLib::ID3v2::AttachedPictureFrame* pF = new TagLib::ID3v2::AttachedPictureFrame();
pF->setData(jpegData);
pF->setMimeType("image/jpeg");
pF->setType(TagLib::ID3v2::AttachedPictureFrame::FrontCover);
t->addFrame(pF);
f.save(TagLib::MPEG::File::ID3v2,false,3);
should work, but it does not save my artwork Frown | :(

If anyone has working C++ code that does work, I'd be very grateful.
Steve S
Developer for hire

AnswerRe: Using C++ TagLib, not TagLib Sharp - how to write APIC frames PinmemberSteve S19-Feb-13 8:21 
Question[MFC] How to use the Picture Control to show jpg image? Pingroupyu-jian19-Feb-13 5:26 
AnswerRe: [MFC] How to use the Picture Control to show jpg image? Pinmemberjeron119-Feb-13 5:35 
GeneralRe: [MFC] How to use the Picture Control to show jpg image? Pingroupyu-jian20-Feb-13 17:32 
AnswerRe: [MFC] How to use the Picture Control to show jpg image? PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 11:20 
Questionglut project Pinmemberabhi sharma19-Feb-13 3:02 
AnswerRe: glut project PinmvpRichard MacCutchan19-Feb-13 4:06 
Questionexe fine in codeblocks Pinmemberabhi sharma19-Feb-13 2:54 
AnswerRe: exe fine in codeblocks PinmemberAlbert Holguin19-Feb-13 5:10 
QuestionRe: exe fine in codeblocks PinmemberDavidCrow19-Feb-13 5:40 
QuestionWDK 7600.16385.1 Compiler Pinmembermsr_codeproject18-Feb-13 18:44 
AnswerRe: WDK 7600.16385.1 Compiler PinmvpRichard MacCutchan19-Feb-13 4:05 
QuestionInvoking a modal Dialog whitin a modal PinmemberForNow18-Feb-13 13:39 
AnswerRe: Invoking a modal Dialog whitin a modal PinmemberJibesh18-Feb-13 13:55 
GeneralRe: Invoking a modal Dialog whitin a modal PinmemberForNow18-Feb-13 14:42 
GeneralRe: Invoking a modal Dialog whitin a modal Pinmember«_Superman_»18-Feb-13 20:51 
GeneralRe: Invoking a modal Dialog whitin a modal PinmvpRichard MacCutchan18-Feb-13 22:24 
GeneralRe: Invoking a modal Dialog whitin a modal PinmemberForNow19-Feb-13 3:29 
GeneralRe: Invoking a modal Dialog whitin a modal PinmvpRichard MacCutchan19-Feb-13 4:02 
GeneralRe: Invoking a modal Dialog whitin a modal PinmemberDavidCrow19-Feb-13 10:42 
GeneralRe: Invoking a modal Dialog whitin a modal PinmemberForNow19-Feb-13 12:33 
SuggestionRe: Invoking a modal Dialog whitin a modal PinmemberDavidCrow20-Feb-13 4:25 
GeneralRe: Invoking a modal Dialog whitin a modal PinmemberForNow20-Feb-13 8:22 
GeneralRe: Invoking a modal Dialog whitin a modal PinmemberDavidCrow20-Feb-13 8:39 
GeneralRe: Invoking a modal Dialog whitin a modal PinmemberForNow20-Feb-13 10:41 
QuestionRe: Invoking a modal Dialog whitin a modal PinmemberDavidCrow20-Feb-13 11:08 
AnswerRe: Invoking a modal Dialog whitin a modal PinmemberForNow20-Feb-13 11:43 
SuggestionRe: Invoking a modal Dialog whitin a modal PinmemberDavidCrow20-Feb-13 11:46 
QuestionRe: Invoking a modal Dialog whitin a modal PinmemberDavidCrow19-Feb-13 5:34 
AnswerRe: Invoking a modal Dialog whitin a modal PinmemberForNow19-Feb-13 7:10 
GeneralRe: Invoking a modal Dialog whitin a modal PinmvpRichard MacCutchan19-Feb-13 9:50 
QuestionRe: Invoking a modal Dialog whitin a modal PinmemberDavidCrow19-Feb-13 10:36 
QuestionCreate a program to encrypt and decrypt binary files using S-DES (Simplified DES) in the Cipher Block Chaining mode. Pinmemberymadhu336618-Feb-13 8:16 
AnswerRe: Create a program to encrypt and decrypt binary files using S-DES (Simplified DES) in the Cipher Block Chaining mode. PinmvpRichard MacCutchan18-Feb-13 8:56 
QuestionProblem with extra extensions in File Dialog Pinmembertgtracey18-Feb-13 7:37 
AnswerRe: Problem with extra extensions in File Dialog PinmvpRichard MacCutchan18-Feb-13 8:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150414.1 | Last Updated 21 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid