Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionHow to hide/remove the menu in MFC Dialog project ? Pin
wangningyu16-Nov-09 14:38
wangningyu16-Nov-09 14:38 
AnswerRe: How to hide/remove the menu in MFC Dialog project ? Pin
«_Superman_»16-Nov-09 15:41
professional«_Superman_»16-Nov-09 15:41 
GeneralRe: How to hide/remove the menu in MFC Dialog project ? Pin
wangningyu16-Nov-09 15:46
wangningyu16-Nov-09 15:46 
QuestionLittle help with analyzing minidumps Pin
Code-o-mat16-Nov-09 10:32
Code-o-mat16-Nov-09 10:32 
AnswerRe: Little help with analyzing minidumps Pin
«_Superman_»16-Nov-09 11:00
professional«_Superman_»16-Nov-09 11:00 
GeneralRe: Little help with analyzing minidumps Pin
Code-o-mat16-Nov-09 11:09
Code-o-mat16-Nov-09 11:09 
AnswerRe: Little help with analyzing minidumps Pin
Stephen Hewitt16-Nov-09 16:40
Stephen Hewitt16-Nov-09 16:40 
GeneralRe: Little help with analyzing minidumps Pin
Code-o-mat16-Nov-09 20:17
Code-o-mat16-Nov-09 20:17 

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.