Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionrichedit.h Pin
Waldermort18-Mar-06 9:32
Waldermort18-Mar-06 9:32 
AnswerRe: richedit.h Pin
karle18-Mar-06 9:59
karle18-Mar-06 9:59 
AnswerRe: richedit.h Pin
Trollslayer18-Mar-06 12:17
mentorTrollslayer18-Mar-06 12:17 
Questionrichedit controls Pin
Waldermort18-Mar-06 6:11
Waldermort18-Mar-06 6:11 
QuestionSeparate CStrings Pin
fambi_mail18-Mar-06 5:48
fambi_mail18-Mar-06 5:48 
AnswerRe: Separate CStrings Pin
Rob Caldecott18-Mar-06 6:01
Rob Caldecott18-Mar-06 6:01 
GeneralRe: Separate CStrings Pin
fambi_mail18-Mar-06 6:09
fambi_mail18-Mar-06 6:09 
GeneralRe: Separate CStrings Pin
Rob Caldecott18-Mar-06 6:14
Rob Caldecott18-Mar-06 6:14 
OK, well you could use the C strtok function instead, but it's messy (and you'd need to make a copy of the string first), e.g.:

CString str = "0123;0456;0789";
// Create a temp string buffer
TCHAR* psz = new TCHAR [str.GetLength() + 1];
// Copy the CString contents to the temp buffer
_tcscpy(psz, str);
// Split the string into tokens
TCHAR* pszTok = _tcstok(psz, _T(";"));
while (pszTok != NULL)
{
    int nVal = _ttoi(pszTok);
    ...
    // Get next token
    pszTok = _tcstok(NULL, _T(";"));
}
delete [] psz;

GeneralBTW... Pin
Rob Caldecott18-Mar-06 6:15
Rob Caldecott18-Mar-06 6:15 
GeneralRe: BTW... Pin
ThatsAlok19-Mar-06 17:28
ThatsAlok19-Mar-06 17:28 
GeneralActually... Pin
Rob Caldecott18-Mar-06 6:20
Rob Caldecott18-Mar-06 6:20 
AnswerRe: Separate CStrings Pin
Michael Dunn18-Mar-06 6:03
sitebuilderMichael Dunn18-Mar-06 6:03 
GeneralRe: Separate CStrings Pin
fambi_mail18-Mar-06 6:22
fambi_mail18-Mar-06 6:22 
QuestionImage Infos Dlg did not appear Pin
sottos18-Mar-06 5:35
sottos18-Mar-06 5:35 
QuestionCan someone explain this??? Pin
woosoo18-Mar-06 5:31
woosoo18-Mar-06 5:31 
AnswerRe: Can someone explain this??? Pin
Chris Losinger18-Mar-06 6:37
professionalChris Losinger18-Mar-06 6:37 
GeneralRe: Can someone explain this??? Pin
woosoo19-Mar-06 3:36
woosoo19-Mar-06 3:36 
QuestionMSDEV crashes . Pin
FarPointer18-Mar-06 5:03
FarPointer18-Mar-06 5:03 
AnswerRe: MSDEV crashes . Pin
Waldermort18-Mar-06 5:47
Waldermort18-Mar-06 5:47 
GeneralRe: MSDEV crashes . Pin
FarPointer18-Mar-06 6:08
FarPointer18-Mar-06 6:08 
QuestionError compilation Pin
kochiukhuatphuc18-Mar-06 4:38
kochiukhuatphuc18-Mar-06 4:38 
AnswerRe: Error compilation Pin
Hamid_RT18-Mar-06 5:25
Hamid_RT18-Mar-06 5:25 
AnswerRe: Error compilation Pin
Michael Dunn18-Mar-06 5:46
sitebuilderMichael Dunn18-Mar-06 5:46 
Questionhow Pin
benniej1518-Mar-06 3:55
benniej1518-Mar-06 3:55 
AnswerRe: how Pin
PJ Arends18-Mar-06 4:44
professionalPJ Arends18-Mar-06 4:44 

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.