Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Constructor vs. Initialization problem Pin
toxcct23-Mar-06 5:24
toxcct23-Mar-06 5:24 
AnswerRe: Constructor vs. Initialization problem Pin
Rick York23-Mar-06 19:04
mveRick York23-Mar-06 19:04 
QuestionCString functions, .Find() Pin
bosfan23-Mar-06 4:36
bosfan23-Mar-06 4:36 
AnswerRe: CString functions, .Find() Pin
Cedric Moonen23-Mar-06 4:45
Cedric Moonen23-Mar-06 4:45 
GeneralRe: CString functions, .Find() Pin
bosfan23-Mar-06 7:57
bosfan23-Mar-06 7:57 
GeneralRe: CString functions, .Find() Pin
Rage23-Mar-06 8:35
professionalRage23-Mar-06 8:35 
GeneralRe: CString functions, .Find() Pin
bosfan23-Mar-06 10:24
bosfan23-Mar-06 10:24 
GeneralRe: CString functions, .Find() Pin
bolivar12323-Mar-06 8:36
bolivar12323-Mar-06 8:36 
You could derive a custom string class from CString and overload the Find function:

class CMyCString : public CString
{
int Find(LPSTR lpszSub, int startAt=0);
}

int CMyCString::Find LPSTR lpszSub, int startAt)
{
CString s1 = *this; //make a copy of the current string
CString s2 = lpszSub;
//Make both strings uppercase
s1.MakeUpper();
s2.MakeUpper();

return s1.Find(s2,startAt);
}

You would then be able to use your custom class in place of CString.
GeneralRe: CString functions, .Find() Pin
bosfan23-Mar-06 10:28
bosfan23-Mar-06 10:28 
QuestionWM_NCHITTEST and borders Pin
Axonn Echysttas23-Mar-06 4:14
Axonn Echysttas23-Mar-06 4:14 
AnswerRe: WM_NCHITTEST and borders Pin
includeh1023-Mar-06 6:24
includeh1023-Mar-06 6:24 
GeneralRe: WM_NCHITTEST and borders Pin
Axonn Echysttas23-Mar-06 22:37
Axonn Echysttas23-Mar-06 22:37 
AnswerRe: WM_NCHITTEST and borders Pin
PJ Arends23-Mar-06 6:32
professionalPJ Arends23-Mar-06 6:32 
GeneralRe: WM_NCHITTEST and borders Pin
Axonn Echysttas23-Mar-06 22:41
Axonn Echysttas23-Mar-06 22:41 
AnswerRe: WM_NCHITTEST and borders Pin
Nibu babu thomas23-Mar-06 18:34
Nibu babu thomas23-Mar-06 18:34 
QuestionGDI+ problem Pin
anton_prokofyev23-Mar-06 4:07
anton_prokofyev23-Mar-06 4:07 
AnswerRe: GDI+ problem Pin
PJ Arends23-Mar-06 6:50
professionalPJ Arends23-Mar-06 6:50 
GeneralRe: GDI+ problem Pin
anton_prokofyev23-Mar-06 20:13
anton_prokofyev23-Mar-06 20:13 
AnswerRe: GDI+ problem Pin
anton_prokofyev23-Mar-06 21:36
anton_prokofyev23-Mar-06 21:36 
QuestionHow can I pass an array as a function parameter? Pin
Cristoff23-Mar-06 2:51
Cristoff23-Mar-06 2:51 
AnswerRe: How can I pass an array as a function parameter? Pin
toxcct23-Mar-06 3:03
toxcct23-Mar-06 3:03 
AnswerRe: How can I pass an array as a function parameter? Pin
Waldermort23-Mar-06 3:05
Waldermort23-Mar-06 3:05 
AnswerRe: How can I pass an array as a function parameter? Pin
Cedric Moonen23-Mar-06 3:15
Cedric Moonen23-Mar-06 3:15 
AnswerThank you! Pin
Cristoff23-Mar-06 3:30
Cristoff23-Mar-06 3:30 
QuestionBitmap Pin
srija23-Mar-06 2:50
srija23-Mar-06 2:50 

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.