Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUsing Base Classes Pin
Desmond Mardle21-Feb-06 5:13
Desmond Mardle21-Feb-06 5:13 
QuestionRe: Using Base Classes Pin
David Crow21-Feb-06 5:33
David Crow21-Feb-06 5:33 
AnswerRe: Using Base Classes Pin
Desmond Mardle21-Feb-06 6:29
Desmond Mardle21-Feb-06 6:29 
QuestionRe: Using Base Classes Pin
David Crow21-Feb-06 7:11
David Crow21-Feb-06 7:11 
AnswerRe: Using Base Classes Pin
Bob Flynn21-Feb-06 5:39
Bob Flynn21-Feb-06 5:39 
QuestionLoop error Pin
Deviantizh21-Feb-06 5:11
Deviantizh21-Feb-06 5:11 
AnswerRe: Loop error Pin
David Crow21-Feb-06 5:37
David Crow21-Feb-06 5:37 
AnswerRe: Loop error Pin
Joe Woodbury21-Feb-06 5:49
professionalJoe Woodbury21-Feb-06 5:49 
I don't think the original string is modified by Tokenize, thus checking it will not work. You could check the return for an empty string, but you could have empty tokens. Off the top of my head, I'd suggest testing strpos (this solution was not tested; it's just a quick guess):

CString temp;<br />
while (strpos < str.GetLength())<br />
{<br />
   temp = str.Tokenize(",", strpos);<br />
   MessageBox(temp);<br />
}


Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke


-- modified at 11:49 Tuesday 21st February, 2006
GeneralRe: Loop error Pin
Deviantizh21-Feb-06 6:05
Deviantizh21-Feb-06 6:05 
QuestionRe: Loop error Pin
Deviantizh21-Feb-06 6:18
Deviantizh21-Feb-06 6:18 
AnswerRe: Loop error Pin
Joe Woodbury21-Feb-06 7:23
professionalJoe Woodbury21-Feb-06 7:23 
GeneralRe: Loop error Pin
Deviantizh22-Feb-06 2:03
Deviantizh22-Feb-06 2:03 
QuestionModify the color of the scrollbar in Visual C++ Pin
Junyor21-Feb-06 4:50
Junyor21-Feb-06 4:50 
AnswerRe: Modify the color of the scrollbar in Visual C++ Pin
#realJSOP21-Feb-06 7:55
mve#realJSOP21-Feb-06 7:55 
Question((COleDispatchImpl*)&amp;m_xDispatch)-&gt;Disconnect() Pin
RobJones21-Feb-06 4:47
RobJones21-Feb-06 4:47 
QuestionPossible to connect to multiple IE COM models through the ROT? Pin
TClarke21-Feb-06 4:00
TClarke21-Feb-06 4:00 
AnswerRe: Possible to connect to multiple IE COM models through the ROT? Pin
Stephen Hewitt21-Feb-06 11:38
Stephen Hewitt21-Feb-06 11:38 
GeneralRe: Possible to connect to multiple IE COM models through the ROT? Pin
TClarke21-Feb-06 22:45
TClarke21-Feb-06 22:45 
Questionhow get a function instruction length? Pin
HOW WHAT21-Feb-06 2:58
HOW WHAT21-Feb-06 2:58 
QuestionRe: how get a function instruction length? Pin
David Crow21-Feb-06 5:38
David Crow21-Feb-06 5:38 
AnswerRe: how get a function instruction length? Pin
HOW WHAT21-Feb-06 14:46
HOW WHAT21-Feb-06 14:46 
AnswerRe: how get a function instruction length? Pin
Joe Woodbury21-Feb-06 5:52
professionalJoe Woodbury21-Feb-06 5:52 
QuestionMessageBox() change line Pin
blang047721-Feb-06 2:48
blang047721-Feb-06 2:48 
AnswerRe: MessageBox() change line Pin
Russell'21-Feb-06 3:09
Russell'21-Feb-06 3:09 
GeneralRe: MessageBox() change line Pin
blang047721-Feb-06 3:17
blang047721-Feb-06 3:17 

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.