Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: dll for middleware Pin
CPallini16-Nov-09 20:41
mveCPallini16-Nov-09 20:41 
GeneralRe: dll for middleware Pin
Eka Candra16-Nov-09 21:03
Eka Candra16-Nov-09 21:03 
QuestionRe: dll for middleware Pin
CPallini16-Nov-09 21:12
mveCPallini16-Nov-09 21:12 
AnswerRe: dll for middleware Pin
Eka Candra16-Nov-09 21:32
Eka Candra16-Nov-09 21:32 
QuestionWin32 to MFC Pin
NaveenHS16-Nov-09 20:02
NaveenHS16-Nov-09 20:02 
AnswerRe: Win32 to MFC Pin
SandipG 16-Nov-09 20:17
SandipG 16-Nov-09 20:17 
AnswerRe: Win32 to MFC Pin
Franck Paquier16-Nov-09 20:20
Franck Paquier16-Nov-09 20:20 
GeneralRe: Win32 to MFC Pin
NaveenHS16-Nov-09 22:32
NaveenHS16-Nov-09 22:32 
QuestionProblem in CRecordset::Open. Pin
Le@rner16-Nov-09 19:58
Le@rner16-Nov-09 19:58 
AnswerRe: Problem in CRecordset::Open. Pin
CPallini16-Nov-09 22:44
mveCPallini16-Nov-09 22:44 
QuestionOpen source my WGI, a GUI lib written with C. Pin
Bruce.Zhao.ZPZ16-Nov-09 19:54
Bruce.Zhao.ZPZ16-Nov-09 19:54 
QuestionRe: Open source my WGI, a GUI lib written with C. Pin
CPallini16-Nov-09 21:01
mveCPallini16-Nov-09 21:01 
QuestionCString - Find How many same words. Pin
Paulraj G16-Nov-09 16:34
Paulraj G16-Nov-09 16:34 
AnswerRe: CString - Find How many same words. Pin
«_Superman_»16-Nov-09 16:40
professional«_Superman_»16-Nov-09 16:40 
GeneralRe: CString - Find How many same words. Pin
Paulraj G16-Nov-09 16:49
Paulraj G16-Nov-09 16:49 
GeneralRe: CString - Find How many same words. Pin
«_Superman_»16-Nov-09 16:53
professional«_Superman_»16-Nov-09 16:53 
Create an integer variable iStart and set it to 0.
Call str.Find("circle", iStart);
Check the return value.
If it is -1, the word was not found.
Otherwise use str.Mid with the return value from Find as the first parameter.
Now increment iStart by the 6, which is the length of the word "circle".
Repeat the loop till Find returns -1.

It is recommended to enclose all strings in the _T("") macro so that it works for both UNICODE and NON-UNICODE builds.

«_Superman
I love work. It gives me something to do between weekends.

Microsoft MVP (Visual C++)

GeneralRe: CString - Find How many same words. Pin
Paulraj G16-Nov-09 16:57
Paulraj G16-Nov-09 16:57 
GeneralRe: CString - Find How many same words. Pin
Adam Roderick J16-Nov-09 16:54
Adam Roderick J16-Nov-09 16:54 
GeneralRe: CString - Find How many same words. Pin
ThatsAlok16-Nov-09 18:14
ThatsAlok16-Nov-09 18:14 
AnswerRe: CString - Find How many same words. Pin
Michael Schubert17-Nov-09 1:49
Michael Schubert17-Nov-09 1:49 
QuestionHelp,about update view. Pin
majianwei8616-Nov-09 15:55
majianwei8616-Nov-09 15:55 
AnswerRe: Help,about update view. Pin
«_Superman_»16-Nov-09 16:43
professional«_Superman_»16-Nov-09 16:43 
GeneralRe: Help,about update view. Pin
majianwei8616-Nov-09 19:02
majianwei8616-Nov-09 19:02 
AnswerRe: Help,about update view. Pin
Adam Roderick J16-Nov-09 16:45
Adam Roderick J16-Nov-09 16:45 
GeneralRe: Help,about update view. Pin
majianwei8616-Nov-09 19:05
majianwei8616-Nov-09 19:05 

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.