Click here to Skip to main content
15,918,243 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Update WM_PAINT and Memory DC Pin
HTT9025-Aug-10 23:18
HTT9025-Aug-10 23:18 
GeneralRe: Update WM_PAINT and Memory DC Pin
Niklas L25-Aug-10 23:22
Niklas L25-Aug-10 23:22 
GeneralRe: Update WM_PAINT and Memory DC Pin
HTT9025-Aug-10 23:41
HTT9025-Aug-10 23:41 
GeneralRe: Update WM_PAINT and Memory DC Pin
JohnCz8-Sep-10 18:24
JohnCz8-Sep-10 18:24 
QuestionHow to get character count Pin
raju_shiva25-Aug-10 22:25
raju_shiva25-Aug-10 22:25 
AnswerRe: How to get character count Pin
HTT9025-Aug-10 22:38
HTT9025-Aug-10 22:38 
AnswerRe: How to get character count Pin
Sauro Viti25-Aug-10 22:48
professionalSauro Viti25-Aug-10 22:48 
AnswerRe: How to get character count Pin
Richard MacCutchan25-Aug-10 23:04
mveRichard MacCutchan25-Aug-10 23:04 
GeneralRe: How to get character count Pin
Sauro Viti25-Aug-10 23:17
professionalSauro Viti25-Aug-10 23:17 
GeneralRe: How to get character count Pin
Richard MacCutchan26-Aug-10 1:29
mveRichard MacCutchan26-Aug-10 1:29 
AnswerRe: How to get character count [modified] Pin
Niklas L25-Aug-10 23:09
Niklas L25-Aug-10 23:09 
GeneralRe: How to get character count Pin
CPallini26-Aug-10 0:38
mveCPallini26-Aug-10 0:38 
GeneralRe: How to get character count Pin
Niklas L26-Aug-10 0:52
Niklas L26-Aug-10 0:52 
AnswerRe: How to get character count Pin
CPallini26-Aug-10 0:18
mveCPallini26-Aug-10 0:18 
Assuming your string is
CString str = _T("Sample(10,20,30,40,50)");

Then
int start = -1;
int count = 0;
while ( (start = str.Find(_T(','), start + 1)) != -1)
  count++;

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

QuestionRe: How to get character count Pin
David Crow26-Aug-10 3:48
David Crow26-Aug-10 3:48 
AnswerRe: How to get character count Pin
«_Superman_»26-Aug-10 17:52
professional«_Superman_»26-Aug-10 17:52 
QuestionHow can print Dialog Box Screen? Pin
Le@rner25-Aug-10 21:16
Le@rner25-Aug-10 21:16 
AnswerRe: How can print Dialog Box Screen? PinPopular
Nuri Ismail25-Aug-10 22:13
Nuri Ismail25-Aug-10 22:13 
GeneralRe: How can print Dialog Box Screen? Pin
Le@rner25-Aug-10 22:31
Le@rner25-Aug-10 22:31 
GeneralRe: How can print Dialog Box Screen? Pin
Nuri Ismail25-Aug-10 23:28
Nuri Ismail25-Aug-10 23:28 
GeneralRe: How can print Dialog Box Screen? Pin
Richard MacCutchan25-Aug-10 23:00
mveRichard MacCutchan25-Aug-10 23:00 
GeneralRe: How can print Dialog Box Screen? Pin
Nuri Ismail25-Aug-10 23:28
Nuri Ismail25-Aug-10 23:28 
GeneralRe: How can print Dialog Box Screen? Pin
Le@rner26-Aug-10 0:45
Le@rner26-Aug-10 0:45 
GeneralRe: How can print Dialog Box Screen? Pin
Nuri Ismail26-Aug-10 2:01
Nuri Ismail26-Aug-10 2:01 
GeneralRe: How can print Dialog Box Screen? Pin
Le@rner26-Aug-10 2:08
Le@rner26-Aug-10 2:08 

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.