Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can I learn?? Pin
Aescleal16-Oct-10 22:21
Aescleal16-Oct-10 22:21 
QuestionCEdit::GetLine return blank value when LineLength is 1. Pin
Le@rner15-Oct-10 23:51
Le@rner15-Oct-10 23:51 
AnswerRe: CEdit::GetLine return blank value when LineLength is 1. Pin
Richard MacCutchan16-Oct-10 0:56
mveRichard MacCutchan16-Oct-10 0:56 
AnswerRe: CEdit::GetLine return blank value when LineLength is 1. Pin
David Crow16-Oct-10 4:40
David Crow16-Oct-10 4:40 
QuestionHow can create thread pool? Pin
Le@rner15-Oct-10 23:23
Le@rner15-Oct-10 23:23 
AnswerRe: How can create thread pool? Pin
Rajesh R Subramanian16-Oct-10 2:51
professionalRajesh R Subramanian16-Oct-10 2:51 
AnswerRe: How can create thread pool? Pin
Iain Clarke, Warrior Programmer17-Oct-10 10:48
Iain Clarke, Warrior Programmer17-Oct-10 10:48 
QuestionEither to use thread pooling or some other technique Pin
learningvisualc15-Oct-10 21:25
learningvisualc15-Oct-10 21:25 
AnswerRe: Either to use thread pooling or some other technique Pin
Rajesh R Subramanian15-Oct-10 22:12
professionalRajesh R Subramanian15-Oct-10 22:12 
QuestionCheck that an EXE file is code signed / digitally signed? Pin
Mika Larramo15-Oct-10 5:59
Mika Larramo15-Oct-10 5:59 
AnswerRe: Check that an EXE file is code signed / digitally signed? [modified] Pin
Code-o-mat15-Oct-10 9:57
Code-o-mat15-Oct-10 9:57 
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 
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 

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.