Click here to Skip to main content
15,917,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is WaitCommEvent() buggy? Pin
Trollslayer13-Jun-03 6:04
mentorTrollslayer13-Jun-03 6:04 
Generalquestion about CFrameWnd Pin
Anonymous13-Jun-03 3:31
Anonymous13-Jun-03 3:31 
QuestionHow to send ATAI "reset device" command? Pin
Brian van der Beek13-Jun-03 3:14
Brian van der Beek13-Jun-03 3:14 
QuestionBind a Key to a controller? Pin
Syxx13-Jun-03 3:10
Syxx13-Jun-03 3:10 
GeneralSplit Method Pin
Valeria Bogdevich13-Jun-03 3:04
Valeria Bogdevich13-Jun-03 3:04 
GeneralRe: Split Method Pin
David Crow13-Jun-03 3:12
David Crow13-Jun-03 3:12 
GeneralRe: Split Method Pin
David Crow13-Jun-03 3:36
David Crow13-Jun-03 3:36 
GeneralRe: Split Method Pin
basementman13-Jun-03 4:14
basementman13-Jun-03 4:14 
Two methods to consider are using the strtok function or simply doing it yourself in a loop like this:

void ProcessEMailAddresses(char *cpEMailAddresses)
{
char *cpDelimiter;
char *p = cpEMailAddresses;
char caEMailAddress[256];
while (p && *p)
{
caEMailAddress[0] = 0;
cpDelimiter = strchr(p,';');
if (!cpDelimiter)
cpDelimiter = strchr(p,','); // check for comma separator

if (cpDelimiter)
{
memcpy(caEMailAddress,p,cpDelimiter-p);
caEMailAddress[cpDelimiter-p] = 0;
}
else
{
strcpy(caEMailAddress,p);
}

if (caEMailAddress[0])
{
// process it!
}

if (cpDelimiter)
p = cpDelimiter + 1;
else
p = NULL;
}
}

<marquee SCROLLAMOUNT=3 scrolldelay=80 direction=right width=40% style="border: 2px inset silver;background-color:yellow;color:green;font-family:Verdana,Arial;font-size:8pt;font-style:italic">onwards and upwards...</marquee>
GeneralRe: Split Method Pin
Anonymous13-Jun-03 7:44
Anonymous13-Jun-03 7:44 
Questionhow to draw rectangle in win98 Pin
tonymjj13-Jun-03 2:52
tonymjj13-Jun-03 2:52 
AnswerRe: how to draw rectangle in win98 Pin
Anonymous13-Jun-03 3:19
Anonymous13-Jun-03 3:19 
QuestionMicrosoft Rich Text Control 6.0 Reference? Pin
Yasen Georgiew13-Jun-03 2:44
Yasen Georgiew13-Jun-03 2:44 
AnswerRe: Microsoft Rich Text Control 6.0 Reference? Pin
Anonymous13-Jun-03 3:13
Anonymous13-Jun-03 3:13 
GeneralRe: Microsoft Rich Text Control 6.0 Reference? Pin
Yasen Georgiew13-Jun-03 3:18
Yasen Georgiew13-Jun-03 3:18 
QuestionCString or LPCTSTR...which one's better? Pin
FASTian13-Jun-03 2:01
FASTian13-Jun-03 2:01 
AnswerRe: CString or LPCTSTR...which one's better? Pin
rrrado13-Jun-03 2:07
rrrado13-Jun-03 2:07 
AnswerRe: CString or LPCTSTR...which one's better? Pin
TeeBee30313-Jun-03 2:10
TeeBee30313-Jun-03 2:10 
GeneralCEdit and the Return key Pin
CodeBrain13-Jun-03 1:42
CodeBrain13-Jun-03 1:42 
GeneralRe: CEdit and the Return key Pin
rrrado13-Jun-03 1:58
rrrado13-Jun-03 1:58 
GeneralRe: CEdit and the Return key Pin
CodeBrain13-Jun-03 2:23
CodeBrain13-Jun-03 2:23 
GeneralRe: CEdit and the Return key Pin
Johann Gerell13-Jun-03 2:17
Johann Gerell13-Jun-03 2:17 
GeneralRe: CEdit and the Return key Pin
Roger Allen13-Jun-03 2:17
Roger Allen13-Jun-03 2:17 
GeneralRe: CEdit and the Return key Pin
CodeBrain13-Jun-03 3:47
CodeBrain13-Jun-03 3:47 
GeneralRe: CEdit and the Return key Pin
Ryan Binns13-Jun-03 4:05
Ryan Binns13-Jun-03 4:05 
GeneralRe: CEdit and the Return key Pin
CodeBrain13-Jun-03 4:44
CodeBrain13-Jun-03 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.