Click here to Skip to main content
12,290,988 members (61,758 online)

C / C++ / MFC

 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pin
yogeshs19-Feb-13 22:46
memberyogeshs19-Feb-13 22:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pin
Richard MacCutchan19-Feb-13 23:01
mvpRichard MacCutchan19-Feb-13 23:01 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pin
yogeshs20-Feb-13 18:46
memberyogeshs20-Feb-13 18:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pin
Richard MacCutchan20-Feb-13 21:06
mvpRichard MacCutchan20-Feb-13 21:06 
QuestionProblem Reading/Writing Registry in Windows 7? Pin
Member 919975419-Feb-13 9:40
memberMember 919975419-Feb-13 9:40 
AnswerRe: Problem Reading/Writing Registry in Windows 7? Pin
DavidCrow19-Feb-13 9:50
memberDavidCrow19-Feb-13 9:50 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
Member 919975419-Feb-13 13:10
memberMember 919975419-Feb-13 13:10 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
Peter_in_278019-Feb-13 20:48
memberPeter_in_278019-Feb-13 20:48 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
Member 919975420-Feb-13 6:27
memberMember 919975420-Feb-13 6:27 
AnswerRe: Problem Reading/Writing Registry in Windows 7? Pin
jschell20-Feb-13 8:11
memberjschell20-Feb-13 8:11 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
jeron120-Feb-13 8:14
memberjeron120-Feb-13 8:14 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
Member 919975420-Feb-13 16:31
memberMember 919975420-Feb-13 16:31 
AnswerRe: Problem Reading/Writing Registry in Windows 7? Pin
Max_Power_Up26-Feb-13 5:21
memberMax_Power_Up26-Feb-13 5:21 
QuestionUsing C++ TagLib, not TagLib Sharp - how to write APIC frames Pin
Steve S19-Feb-13 6:32
memberSteve S19-Feb-13 6: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 Pin
Steve S19-Feb-13 7:21
memberSteve S19-Feb-13 7:21 
Question[MFC] How to use the Picture Control to show jpg image? Pin
yu-jian19-Feb-13 4:26
groupyu-jian19-Feb-13 4:26 
AnswerRe: [MFC] How to use the Picture Control to show jpg image? Pin
jeron119-Feb-13 4:35
memberjeron119-Feb-13 4:35 
GeneralRe: [MFC] How to use the Picture Control to show jpg image? Pin
yu-jian20-Feb-13 16:32
groupyu-jian20-Feb-13 16:32 
AnswerRe: [MFC] How to use the Picture Control to show jpg image? Pin
Michael Haephrati מיכאל האפרתי20-Feb-13 10:20
mvpMichael Haephrati מיכאל האפרתי20-Feb-13 10:20 
Questionglut project Pin
abhi sharma19-Feb-13 2:02
memberabhi sharma19-Feb-13 2:02 
AnswerRe: glut project Pin
Richard MacCutchan19-Feb-13 3:06
mvpRichard MacCutchan19-Feb-13 3:06 
Questionexe fine in codeblocks Pin
abhi sharma19-Feb-13 1:54
memberabhi sharma19-Feb-13 1:54 
AnswerRe: exe fine in codeblocks Pin
Albert Holguin19-Feb-13 4:10
memberAlbert Holguin19-Feb-13 4:10 
QuestionRe: exe fine in codeblocks Pin
DavidCrow19-Feb-13 4:40
memberDavidCrow19-Feb-13 4:40 
QuestionWDK 7600.16385.1 Compiler Pin
msr_codeproject18-Feb-13 17:44
membermsr_codeproject18-Feb-13 17:44 
AnswerRe: WDK 7600.16385.1 Compiler Pin
Richard MacCutchan19-Feb-13 3:05
mvpRichard MacCutchan19-Feb-13 3:05 
QuestionInvoking a modal Dialog whitin a modal Pin
ForNow18-Feb-13 12:39
memberForNow18-Feb-13 12:39 
AnswerRe: Invoking a modal Dialog whitin a modal Pin
Jibesh18-Feb-13 12:55
memberJibesh18-Feb-13 12:55 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow18-Feb-13 13:42
memberForNow18-Feb-13 13:42 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
«_Superman_»18-Feb-13 19:51
member«_Superman_»18-Feb-13 19:51 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
Richard MacCutchan18-Feb-13 21:24
mvpRichard MacCutchan18-Feb-13 21:24 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow19-Feb-13 2:29
memberForNow19-Feb-13 2:29 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
Richard MacCutchan19-Feb-13 3:02
mvpRichard MacCutchan19-Feb-13 3:02 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
DavidCrow19-Feb-13 9:42
memberDavidCrow19-Feb-13 9:42 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow19-Feb-13 11:33
memberForNow19-Feb-13 11:33 
SuggestionRe: Invoking a modal Dialog whitin a modal Pin
DavidCrow20-Feb-13 3:25
memberDavidCrow20-Feb-13 3:25 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow20-Feb-13 7:22
memberForNow20-Feb-13 7:22 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
DavidCrow20-Feb-13 7:39
memberDavidCrow20-Feb-13 7:39 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow20-Feb-13 9:41
memberForNow20-Feb-13 9:41 
QuestionRe: Invoking a modal Dialog whitin a modal Pin
DavidCrow20-Feb-13 10:08
memberDavidCrow20-Feb-13 10:08 
AnswerRe: Invoking a modal Dialog whitin a modal Pin
ForNow20-Feb-13 10:43
memberForNow20-Feb-13 10:43 
SuggestionRe: Invoking a modal Dialog whitin a modal Pin
DavidCrow20-Feb-13 10:46
memberDavidCrow20-Feb-13 10:46 
QuestionRe: Invoking a modal Dialog whitin a modal Pin
DavidCrow19-Feb-13 4:34
memberDavidCrow19-Feb-13 4:34 
AnswerRe: Invoking a modal Dialog whitin a modal Pin
ForNow19-Feb-13 6:10
memberForNow19-Feb-13 6:10 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
Richard MacCutchan19-Feb-13 8:50
mvpRichard MacCutchan19-Feb-13 8:50 
QuestionRe: Invoking a modal Dialog whitin a modal Pin
DavidCrow19-Feb-13 9:36
memberDavidCrow19-Feb-13 9:36 
QuestionCreate a program to encrypt and decrypt binary files using S-DES (Simplified DES) in the Cipher Block Chaining mode. Pin
ymadhu336618-Feb-13 7:16
memberymadhu336618-Feb-13 7:16 
AnswerRe: Create a program to encrypt and decrypt binary files using S-DES (Simplified DES) in the Cipher Block Chaining mode. Pin
Richard MacCutchan18-Feb-13 7:56
mvpRichard MacCutchan18-Feb-13 7:56 
QuestionProblem with extra extensions in File Dialog Pin
tgtracey18-Feb-13 6:37
membertgtracey18-Feb-13 6:37 
AnswerRe: Problem with extra extensions in File Dialog Pin
Richard MacCutchan18-Feb-13 7:58
mvpRichard MacCutchan18-Feb-13 7:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web02 | 2.8.160518.1 | Last Updated 24 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid