Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Move the read position in a CString. Pin
CodingLover20-Nov-07 20:10
CodingLover20-Nov-07 20:10 
AnswerRe: Move the read position in a CString. Pin
Cedric Moonen20-Nov-07 20:14
Cedric Moonen20-Nov-07 20:14 
GeneralRe: Move the read position in a CString. Pin
CodingLover20-Nov-07 20:39
CodingLover20-Nov-07 20:39 
QuestionCount Character in string Pin
manish.patel20-Nov-07 19:37
manish.patel20-Nov-07 19:37 
AnswerRe: Count Character in string Pin
Hamid_RT20-Nov-07 19:44
Hamid_RT20-Nov-07 19:44 
GeneralRe: Count Character in string Pin
manish.patel20-Nov-07 19:58
manish.patel20-Nov-07 19:58 
GeneralRe: Count Character in string Pin
Cedric Moonen20-Nov-07 20:19
Cedric Moonen20-Nov-07 20:19 
GeneralRe: Count Character in string Pin
manish.patel20-Nov-07 20:45
manish.patel20-Nov-07 20:45 
I am storing bytes in buffer. And its too long. Thats why i need for in built function.

Any idea?

i had done like this:

int countByte(BYTE *src, BYTE b)<br />
{<br />
	int count = 0;<br />
	for(int i = 0; i < strlen((char *)src); i++)<br />
		if(src[i] == b)<br />
			count++;<br />
	return count;<br />
}


Any Suggestion..

Manish Patel.
B.E. - Information Technology.

GeneralRe: Count Character in string Pin
Cedric Moonen20-Nov-07 20:55
Cedric Moonen20-Nov-07 20:55 
GeneralRe: Count Character in string Pin
manish.patel20-Nov-07 21:03
manish.patel20-Nov-07 21:03 
GeneralRe: Count Character in string Pin
KarstenK20-Nov-07 21:04
mveKarstenK20-Nov-07 21:04 
GeneralRe: Count Character in string Pin
manish.patel20-Nov-07 21:13
manish.patel20-Nov-07 21:13 
GeneralRe: Count Character in string Pin
Cedric Moonen20-Nov-07 21:44
Cedric Moonen20-Nov-07 21:44 
GeneralRe: Count Character in string (even faster) Pin
bolivar12321-Nov-07 3:06
bolivar12321-Nov-07 3:06 
QuestionCWnd Pin
kk.tvm20-Nov-07 19:07
kk.tvm20-Nov-07 19:07 
AnswerRe: CWnd Pin
Hamid_RT20-Nov-07 19:11
Hamid_RT20-Nov-07 19:11 
GeneralRe: CWnd Pin
kk.tvm20-Nov-07 21:11
kk.tvm20-Nov-07 21:11 
GeneralRe: CWnd Pin
Hamid_RT20-Nov-07 21:18
Hamid_RT20-Nov-07 21:18 
QuestionHow to SetWindowPos correctly? Actually confused with GetClientRect,GetWindowRect,ScreenToClient and ClientToScreen etc. Pin
fantasy121520-Nov-07 18:36
fantasy121520-Nov-07 18:36 
AnswerRe: How to SetWindowPos correctly? Actually confused with GetClientRect,GetWindowRect,ScreenToClient and ClientToScreen etc. Pin
Mark Salsbery20-Nov-07 19:01
Mark Salsbery20-Nov-07 19:01 
GeneralRe: How to SetWindowPos correctly? Actually confused with GetClientRect,GetWindowRect,ScreenToClient and ClientToScreen etc. [modified] Pin
fantasy121520-Nov-07 20:34
fantasy121520-Nov-07 20:34 
GeneralRe: How to SetWindowPos correctly? Actually confused with GetClientRect,GetWindowRect,ScreenToClient and ClientToScreen etc. Pin
Parthi_Appu21-Nov-07 0:25
Parthi_Appu21-Nov-07 0:25 
QuestionRe: How to SetWindowPos correctly? Actually confused with GetClientRect,GetWindowRect,ScreenToClient and ClientToScreen etc. [Understood clearly] Pin
fantasy121521-Nov-07 13:59
fantasy121521-Nov-07 13:59 
GeneralRe: How to SetWindowPos correctly? Actually confused with GetClientRect,GetWindowRect,ScreenToClient and ClientToScreen etc. Pin
Mark Salsbery21-Nov-07 5:15
Mark Salsbery21-Nov-07 5:15 
QuestionGetWindowText in OnKeyDown not correct Pin
followait20-Nov-07 18:26
followait20-Nov-07 18:26 

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.