Click here to Skip to main content
15,905,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Code-o-mat wrote:
From your original post i gathered that sometimes there are spaces before the title but am not sure anymore.


I even wondered about this, but I have realised that once the beginning bytes are set to spaces, they are unset. But the problem was that I used strlen() to get the length of the text for the track title.

Meanwhile, this function uses the '\0' character to detect when to stop counting and therefore counted spaces as well. Then I called strncpy() to copy string of text of the number returned by strlen(). This was causing those garbage to be copied as well.

I have written my own function that returns the length of a string, and I wrote it such that it will used both the '\0' and the ' ' (space) characters to detect when to stop counting. Thanks for your guidance, I really appreciate it.
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 
GeneralRe: One genneral question on dual buffers design with multi-threading Pin
Rick York18-Oct-10 7:11
mveRick York18-Oct-10 7:11 
GeneralRe: One genneral question on dual buffers design with multi-threading Pin
SAMZC18-Oct-10 18:22
SAMZC18-Oct-10 18:22 
AnswerRe: One genneral question on dual buffers design with multi-threading Pin
Rajesh R Subramanian15-Oct-10 1:05
professionalRajesh R Subramanian15-Oct-10 1:05 
GeneralRe: One genneral question on dual buffers design with multi-threading Pin
SAMZC15-Oct-10 20:53
SAMZC15-Oct-10 20:53 

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.