Click here to Skip to main content
15,920,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HWND From Procedd ID Pin
Eugen Podsypalnikov4-Mar-10 19:21
Eugen Podsypalnikov4-Mar-10 19:21 
GeneralRe: HWND From Procedd ID Pin
john56324-Mar-10 19:37
john56324-Mar-10 19:37 
GeneralRe: HWND From Procedd ID Pin
Eugen Podsypalnikov4-Mar-10 19:46
Eugen Podsypalnikov4-Mar-10 19:46 
GeneralRe: HWND From Procedd ID Pin
john56324-Mar-10 19:55
john56324-Mar-10 19:55 
GeneralRe: HWND From Procedd ID Pin
Eugen Podsypalnikov4-Mar-10 20:17
Eugen Podsypalnikov4-Mar-10 20:17 
AnswerRe: HWND From Procedd ID Pin
ycc8920095-Mar-10 5:40
ycc8920095-Mar-10 5:40 
QuestionCString "Find" Problem Pin
Anu_Bala4-Mar-10 17:59
Anu_Bala4-Mar-10 17:59 
AnswerRe: CString "Find" Problem Pin
Adam Roderick J4-Mar-10 18:10
Adam Roderick J4-Mar-10 18:10 
Firstly let me ask you, did u check the syntax of CString::Find functions([^])?
It returns integer not bool, and it returns the index which can be used to find in case of multiple occurances.

Find is overloaded functions,

// The below function always find from the start point, your case there is multiple occurance of "Push".
int Find( TCHAR ch ) const;

int Find( LPCTSTR lpszSub ) const;

int Find( TCHAR ch, int nStart ) const;

// use the below function which have start point, which will help you to specify your starting point.
int Find( LPCTSTR pstr, int nStart ) const;




I think this sample code will solve your problem.
int nFind = sTemp.Find("ColorPush", 0);
if(  -1 != nFind )
{
   nFind++;
   // DO other operations
} 
int nFind = sTemp.Find("Push", nFind );
Величие не Бога может быть недооценена.

AnswerRe: CString "Find" Problem Pin
Cool_Dev4-Mar-10 18:32
Cool_Dev4-Mar-10 18:32 
GeneralRe: CString "Find" Problem Pin
Anu_Bala4-Mar-10 18:51
Anu_Bala4-Mar-10 18:51 
GeneralRe: CString "Find" Problem Pin
Adam Roderick J4-Mar-10 19:18
Adam Roderick J4-Mar-10 19:18 
GeneralRe: CString "Find" Problem Pin
Joe Woodbury4-Mar-10 19:39
professionalJoe Woodbury4-Mar-10 19:39 
GeneralRe: CString "Find" Problem Pin
Mohan Ramachandra4-Mar-10 20:06
Mohan Ramachandra4-Mar-10 20:06 
QuestionDynamic button creation Pin
shiv@nand4-Mar-10 17:29
shiv@nand4-Mar-10 17:29 
AnswerRe: Dynamic button creation Pin
Adam Roderick J4-Mar-10 18:15
Adam Roderick J4-Mar-10 18:15 
AnswerRe: Dynamic button creation Pin
shiv@nand4-Mar-10 18:35
shiv@nand4-Mar-10 18:35 
GeneralRe: Dynamic button creation Pin
Mohan Ramachandra4-Mar-10 22:21
Mohan Ramachandra4-Mar-10 22:21 
QuestionVisual Studio C++ 6.0 Dialog question Pin
gedinfo4-Mar-10 15:21
gedinfo4-Mar-10 15:21 
AnswerRe: Visual Studio C++ 6.0 Dialog question Pin
«_Superman_»4-Mar-10 15:53
professional«_Superman_»4-Mar-10 15:53 
GeneralRe: Visual Studio C++ 6.0 Dialog question Pin
gedinfo4-Mar-10 16:12
gedinfo4-Mar-10 16:12 
GeneralRe: Visual Studio C++ 6.0 Dialog question Pin
Gwenio4-Mar-10 16:50
Gwenio4-Mar-10 16:50 
AnswerRe: Visual Studio C++ 6.0 Dialog question Pin
KarstenK4-Mar-10 21:31
mveKarstenK4-Mar-10 21:31 
QuestionConvert a file into .doc template? Pin
gedinfo4-Mar-10 11:18
gedinfo4-Mar-10 11:18 
AnswerRe: Convert a file into .doc template? Pin
«_Superman_»4-Mar-10 15:44
professional«_Superman_»4-Mar-10 15:44 
Questionusing flags for cout [Solved] Pin
b-rad3114-Mar-10 11:16
b-rad3114-Mar-10 11:16 

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.