Click here to Skip to main content
15,891,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Check that an EXE file is code signed / digitally signed? Pin
Mika Larramo19-Oct-10 10:16
Mika Larramo19-Oct-10 10:16 
GeneralRe: Check that an EXE file is code signed / digitally signed? Pin
Code-o-mat19-Oct-10 10:20
Code-o-mat19-Oct-10 10:20 
Questionadd char array in specific position in another char array Pin
sadas232341s15-Oct-10 5:41
sadas232341s15-Oct-10 5:41 
AnswerRe: add char array in specific position in another char array Pin
Richard MacCutchan15-Oct-10 5:56
mveRichard MacCutchan15-Oct-10 5:56 
GeneralRe: add char array in specific position in another char array Pin
sadas232341s15-Oct-10 6:38
sadas232341s15-Oct-10 6:38 
GeneralRe: add char array in specific position in another char array Pin
Luc Pattyn15-Oct-10 6:57
sitebuilderLuc Pattyn15-Oct-10 6:57 
GeneralRe: add char array in specific position in another char array Pin
Richard MacCutchan15-Oct-10 7:11
mveRichard MacCutchan15-Oct-10 7:11 
QuestionReading strings from ID3 tag Pin
Danzy8315-Oct-10 4:09
Danzy8315-Oct-10 4:09 
Hi everyone, I have a program that reads ID3 tag information from mp3 file which is working. For ID3v1 tags, the track title starts at the 4th byte after the address of the TAG.

For some files I have encountered, the address where I expect the track title begins with the ASCII character code 0x20 which is a space, and there could be more of the spaces followed by the text. String copying becomes successfull only that the string begins with spaces and there is no problem.

Now the problem is that some of the mp3 files have spaces at the address where I expect the track title followed by garbage. I used a hex editor to view the bytes and I saw that the spaces were followed by garbage. This to me means there is no track title.

I want to know how I can detect this to avoid showing this garbage as the track title, or any other text I want since string copying uses the '\0' character to determine the end of the string. I used 'strncpy()' function in copying text.
AnswerRe: Reading strings from ID3 tag [modified] Pin
Code-o-mat15-Oct-10 5:13
Code-o-mat15-Oct-10 5:13 
GeneralRe: Reading strings from ID3 tag Pin
Danzy8315-Oct-10 7:26
Danzy8315-Oct-10 7:26 
GeneralRe: Reading strings from ID3 tag Pin
Code-o-mat15-Oct-10 9:46
Code-o-mat15-Oct-10 9:46 
GeneralRe: Reading strings from ID3 tag Pin
Danzy8315-Oct-10 11:25
Danzy8315-Oct-10 11:25 
GeneralRe: Reading strings from ID3 tag Pin
Code-o-mat15-Oct-10 11:39
Code-o-mat15-Oct-10 11:39 
QuestionType Casting Pin
gothic_coder15-Oct-10 1:00
gothic_coder15-Oct-10 1:00 
AnswerRe: Type Casting Pin
Cedric Moonen15-Oct-10 1:02
Cedric Moonen15-Oct-10 1:02 
GeneralRe: Type Casting Pin
gothic_coder15-Oct-10 1:06
gothic_coder15-Oct-10 1:06 
AnswerRe: Type Casting Pin
Sauro Viti15-Oct-10 1:15
professionalSauro Viti15-Oct-10 1:15 
QuestionOne genneral question on dual buffers design with multi-threading Pin
SAMZC14-Oct-10 23:42
SAMZC14-Oct-10 23:42 
AnswerRe: One genneral question on dual buffers design with multi-threading Pin
CPallini14-Oct-10 23:49
mveCPallini14-Oct-10 23:49 
GeneralRe: One genneral question on dual buffers design with multi-threading Pin
Rajesh R Subramanian15-Oct-10 1:01
professionalRajesh R Subramanian15-Oct-10 1:01 
GeneralRe: One genneral question on dual buffers design with multi-threading Pin
CPallini15-Oct-10 2:35
mveCPallini15-Oct-10 2:35 
GeneralRe: One genneral question on dual buffers design with multi-threading Pin
Rajesh R Subramanian15-Oct-10 22:10
professionalRajesh R Subramanian15-Oct-10 22:10 
GeneralRe: One genneral question on dual buffers design with multi-threading Pin
SAMZC15-Oct-10 23:42
SAMZC15-Oct-10 23:42 
AnswerRe: One genneral question on dual buffers design with multi-threading Pin
Cedric Moonen14-Oct-10 23:55
Cedric Moonen14-Oct-10 23:55 
GeneralRe: One genneral question on dual buffers design with multi-threading Pin
SAMZC15-Oct-10 20:37
SAMZC15-Oct-10 20:37 

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.