Click here to Skip to main content
15,923,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Crash Pin
Toni7816-Jul-03 16:08
Toni7816-Jul-03 16:08 
GeneralRe: Crash Pin
Anonymous16-Jul-03 16:16
Anonymous16-Jul-03 16:16 
GeneralRe: Crash Pin
Toni7816-Jul-03 19:17
Toni7816-Jul-03 19:17 
GeneralRe: Crash Pin
Jens Doose21-Jul-03 23:42
Jens Doose21-Jul-03 23:42 
Generalmain( int argc, char *argv[], char *envp[] ) Pin
dadacncn16-Jul-03 12:15
dadacncn16-Jul-03 12:15 
GeneralRe: main( int argc, char *argv[], char *envp[] ) Pin
Garth J Lancaster16-Jul-03 12:49
professionalGarth J Lancaster16-Jul-03 12:49 
GeneralRe: main( int argc, char *argv[], char *envp[] ) Pin
dadacncn16-Jul-03 22:51
dadacncn16-Jul-03 22:51 
Generalstrtok Pin
butterbean73016-Jul-03 11:46
butterbean73016-Jul-03 11:46 
This may seem like a weird question but here goes. Is there a way to tokenize a tokenized string? Explanation:

I have an input buffer that I am tokenizing line by line. Once I get that line I need to tokenize it 3 times to get the info on it and then go back to the original buffer and get the next line. This is what I have so far but it only tokenizes the first line of the buffer:

//This gets the first line of the buffer
char *temp_tok = strtok(m_readBuffer, "\r\n");
m_ctrlTextInA.SetWindowText(temp_tok);
******************************************
//this tokenizes the whole line
char* tokA = strtok(NULL, ",");
m_ctrlTextInA.SetWindowText(tokA);

char* tokB = strtok(NULL, ",");
m_ctrlTextInB.SetWindowText(tokB);

char* tokC = strtok(NULL, "\r\n");
m_ctrlTextInC.SetWindowText(tokC);
*****************************************

I know I need some kind of loop around the ****, but I can not figure out the parameters of that loop. once i get those 3 tokens i want to get the next line from the readbuffer and continue doing this until the readbuffer is empty

any suggestions???


GeneralRe: strtok Pin
Ryan Binns16-Jul-03 17:16
Ryan Binns16-Jul-03 17:16 
GeneralEnv Vars in arg list and Studio Pin
john john mackey16-Jul-03 11:15
john john mackey16-Jul-03 11:15 
GeneralHiding controls in the CFileDialog Pin
GloriousBlues16-Jul-03 10:45
GloriousBlues16-Jul-03 10:45 
QuestionHow to make an automated phone call? Pin
Alvaro Mendez16-Jul-03 9:52
Alvaro Mendez16-Jul-03 9:52 
AnswerRe: How to make an automated phone call? Pin
Ranjan Banerji16-Jul-03 10:51
Ranjan Banerji16-Jul-03 10:51 
AnswerRe: How to make an automated phone call? Pin
Ranjan Banerji16-Jul-03 10:58
Ranjan Banerji16-Jul-03 10:58 
GeneralTo MFC or NOT to MFC that is the question. Pin
John R. Shaw16-Jul-03 9:48
John R. Shaw16-Jul-03 9:48 
GeneralRe: To MFC or NOT to MFC that is the question. Pin
Code4Food16-Jul-03 9:56
Code4Food16-Jul-03 9:56 
GeneralRe: To MFC or NOT to MFC that is the question. Pin
Ryan Binns16-Jul-03 17:24
Ryan Binns16-Jul-03 17:24 
QuestionHow to detect an USB Mass Storage or Digital Camera connection Pin
Member 30919816-Jul-03 9:28
Member 30919816-Jul-03 9:28 
Generalregistry api Pin
YaronNir16-Jul-03 9:09
YaronNir16-Jul-03 9:09 
GeneralRe: registry api Pin
David Crow16-Jul-03 9:35
David Crow16-Jul-03 9:35 
GeneralRe: registry api Pin
YaronNir17-Jul-03 4:20
YaronNir17-Jul-03 4:20 
GeneralRe: registry api Pin
David Crow17-Jul-03 5:23
David Crow17-Jul-03 5:23 
GeneralRe: registry api Pin
Iain Clarke, Warrior Programmer16-Jul-03 10:27
Iain Clarke, Warrior Programmer16-Jul-03 10:27 
GeneralRe: registry api Pin
YaronNir17-Jul-03 4:20
YaronNir17-Jul-03 4:20 
GeneralRe: registry api Pin
Iain Clarke, Warrior Programmer17-Jul-03 4:38
Iain Clarke, Warrior Programmer17-Jul-03 4:38 

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.