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

C / C++ / MFC

 
GeneralMDI to SDI Pin
Jay Hova9-Jul-03 0:42
Jay Hova9-Jul-03 0:42 
GeneralRe: MDI to SDI Pin
David Crow9-Jul-03 3:17
David Crow9-Jul-03 3:17 
QuestionI want to know the relation between Unicode and the following? Pin
Alice809-Jul-03 0:32
Alice809-Jul-03 0:32 
AnswerRe: I want to know the relation between Unicode and the following? Pin
David Crow9-Jul-03 3:20
David Crow9-Jul-03 3:20 
GeneralRe: I want to know the relation between Unicode and the following? Pin
Alice809-Jul-03 6:23
Alice809-Jul-03 6:23 
GeneralRe: I want to know the relation between Unicode and the following? Pin
David Crow9-Jul-03 7:54
David Crow9-Jul-03 7:54 
Generallooping through a string Pin
si_698-Jul-03 23:18
si_698-Jul-03 23:18 
GeneralRe: looping through a string Pin
Cedric Moonen8-Jul-03 23:39
Cedric Moonen8-Jul-03 23:39 
Hum, this can be done using the strtok function (take a look at the doc). But this works with char* and not CString.
Here is an example:

char szString[255];<br />
strcpy(szString,mystring.GetBuffer(254));<br />
<br />
char* token = strtok(szString,",");<br />
while(token)<br />
{<br />
  int Value = atoi(token);<br />
  token = strtok(NULL,",");<br />
}


And store Value in a table !

Hope this helps!
GeneralRe: looping through a string Pin
Ryan Binns8-Jul-03 23:50
Ryan Binns8-Jul-03 23:50 
GeneralRe: looping through a string Pin
Cedric Moonen8-Jul-03 23:59
Cedric Moonen8-Jul-03 23:59 
GeneralRe: looping through a string Pin
Ryan Binns9-Jul-03 2:08
Ryan Binns9-Jul-03 2:08 
GeneralRe: looping through a string Pin
Cedric Moonen9-Jul-03 3:04
Cedric Moonen9-Jul-03 3:04 
GeneralRe: looping through a string Pin
Ryan Binns9-Jul-03 3:12
Ryan Binns9-Jul-03 3:12 
GeneralRe: looping through a string Pin
Cedric Moonen9-Jul-03 3:17
Cedric Moonen9-Jul-03 3:17 
GeneralRe: looping through a string Pin
si_699-Jul-03 3:24
si_699-Jul-03 3:24 
GeneralRe: looping through a string Pin
Ryan Binns9-Jul-03 3:56
Ryan Binns9-Jul-03 3:56 
GeneralRe: looping through a string Pin
Nuehli8-Jul-03 23:40
Nuehli8-Jul-03 23:40 
GeneralRe: looping through a string Pin
Ryan Binns8-Jul-03 23:44
Ryan Binns8-Jul-03 23:44 
GeneralRe: looping through a string Pin
keegan9-Jul-03 3:22
keegan9-Jul-03 3:22 
Generalarray problem... Pin
DaveE9th8-Jul-03 23:11
DaveE9th8-Jul-03 23:11 
GeneralRe: array problem... Pin
Alan Dugdall9-Jul-03 0:19
Alan Dugdall9-Jul-03 0:19 
GeneralRe: array problem... Pin
David Crow9-Jul-03 3:24
David Crow9-Jul-03 3:24 
GeneralRe: array problem... Pin
DaveE9th9-Jul-03 3:51
DaveE9th9-Jul-03 3:51 
GeneralFind Window Handles of a process Pin
parths8-Jul-03 22:53
parths8-Jul-03 22:53 
GeneralRe: Find Window Handles of a process Pin
Magnus Westin8-Jul-03 23:06
Magnus Westin8-Jul-03 23:06 

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.