Click here to Skip to main content
15,867,330 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: dynamically create controls and attaching listeners to them? Pin
KarstenK25-Jul-04 21:14
mveKarstenK25-Jul-04 21:14 
GeneralBut how to attach a message handler dynamically? Pin
misterbear26-Jul-04 0:04
misterbear26-Jul-04 0:04 
Questiondynamically create controls and attaching listeners to them? Pin
misterbear25-Jul-04 20:23
misterbear25-Jul-04 20:23 
GeneralGDI Objects Pin
0v3rloader25-Jul-04 13:25
0v3rloader25-Jul-04 13:25 
GeneralRe: GDI Objects Pin
Ravi Bhavnani25-Jul-04 14:54
professionalRavi Bhavnani25-Jul-04 14:54 
GeneralRe: GDI Objects Pin
Michael Dunn25-Jul-04 18:21
sitebuilderMichael Dunn25-Jul-04 18:21 
GeneralRe: GDI Objects Pin
Antony M Kancidrowski26-Jul-04 2:06
Antony M Kancidrowski26-Jul-04 2:06 
GeneralReadfile from *.txt Pin
71cwill25-Jul-04 8:39
71cwill25-Jul-04 8:39 
I have been trying to create a tokeninzer/scanner for my school project. But I have a hard time dealing with spaces between words. rather than it would separates the words after spaces, it will keep on adding the characters to one big word. If I inputed "print codes", it will make the variables as one 'printcodes' rather than "print" as one keyword and "codes" as identifier.
Could anyone help me solve this problem?
Here is the c++ codes I created:
while(!read.eof()) //(read>>letter)
{
//catching symbols
if(letter == '*'||'/'||'+'||'-'||'='||'('||')') {
checkid.checktokenop(letter); }
char gotit2 = letter;
//catching letters
if(gotit2 != '*')
if(gotit2 != '/')
if(gotit2 != '+')
if(gotit2 != '-')
if(gotit2 != '=')
if(gotit2 != '(')
if(gotit2 != ')')
{
int result = 1;
codes+= gotit2;
if(gotit2 == ' ')
{
result = checkid.checktokenword(codes);
codes.erase();
}
if(result == 0)//if Reserved word and,or,print,not
{
codes.erase();
}
}//end of catching letter
}

Please help!!!
GeneralRe: Readfile from *.txt Pin
Michael Dunn25-Jul-04 11:33
sitebuilderMichael Dunn25-Jul-04 11:33 
GeneralDisabling/enabling menu/toolbar items... Pin
0v3rloader25-Jul-04 7:14
0v3rloader25-Jul-04 7:14 
GeneralRe: Disabling/enabling menu/toolbar items... Pin
Ivan Cachicatari25-Jul-04 11:44
Ivan Cachicatari25-Jul-04 11:44 
GeneralRe: Disabling/enabling menu/toolbar items... Pin
0v3rloader25-Jul-04 11:57
0v3rloader25-Jul-04 11:57 
GeneralRe: Disabling/enabling menu/toolbar items... Pin
Ravi Bhavnani25-Jul-04 13:33
professionalRavi Bhavnani25-Jul-04 13:33 
GeneralSolution for globally listening to keys pressed Pin
0v3rloader25-Jul-04 6:59
0v3rloader25-Jul-04 6:59 
GeneralRe: Solution for globally listening to keys pressed Pin
PJ Arends25-Jul-04 10:13
professionalPJ Arends25-Jul-04 10:13 
Questionhow to pass a simple char* to a unicode binary text?? Pin
youpiyoyo25-Jul-04 5:45
youpiyoyo25-Jul-04 5:45 
AnswerRe: how to pass a simple char* to a unicode binary text?? Pin
bikram singh26-Jul-04 7:53
bikram singh26-Jul-04 7:53 
GeneralODBC Database Metadata (All Table names) Pin
omair shafiq25-Jul-04 5:34
omair shafiq25-Jul-04 5:34 
GeneralRe: ODBC Database Metadata (All Table names) Pin
David Crow26-Jul-04 4:05
David Crow26-Jul-04 4:05 
GeneralC reateProcess Pin
Member 75213725-Jul-04 4:04
Member 75213725-Jul-04 4:04 
GeneralRe: C reateProcess Pin
PJ Arends25-Jul-04 10:06
professionalPJ Arends25-Jul-04 10:06 
Generalbandwidth monitoring Pin
Paolo Ponzano25-Jul-04 2:38
Paolo Ponzano25-Jul-04 2:38 
QuestionJumping out of a heavily-nested looping noy by using "goto" statement? Pin
Link260024-Jul-04 17:24
Link260024-Jul-04 17:24 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Ravi Bhavnani24-Jul-04 17:52
professionalRavi Bhavnani24-Jul-04 17:52 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Mike Dimmick25-Jul-04 5:30
Mike Dimmick25-Jul-04 5:30 

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.