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

C / C++ / MFC

 
GeneralRe: const keyword Pin
Dominik Reichl2-Mar-07 1:09
Dominik Reichl2-Mar-07 1:09 
GeneralRe: const keyword Pin
Stephen Hewitt4-Mar-07 13:12
Stephen Hewitt4-Mar-07 13:12 
AnswerRe: const keyword Pin
prasad_som2-Mar-07 0:58
prasad_som2-Mar-07 0:58 
AnswerRe: const keyword Pin
Roger Stoltz2-Mar-07 1:55
Roger Stoltz2-Mar-07 1:55 
QuestionRe: const keyword Pin
David Crow2-Mar-07 2:51
David Crow2-Mar-07 2:51 
AnswerRe: const keyword Pin
Roger Stoltz2-Mar-07 3:11
Roger Stoltz2-Mar-07 3:11 
AnswerRe: const keyword Pin
toxcct2-Mar-07 1:55
toxcct2-Mar-07 1:55 
AnswerRe: const keyword Pin
vibindia2-Mar-07 4:07
vibindia2-Mar-07 4:07 
class sample
{
CString s1;
mutable CString s2;
public:
CString GetItemText(int nRow, int nCol) const;
};

CString sample::GetItemTextint nRow, int nCol) const;
{
s1 = _T("abc");//error because an const function can't change the data memter
//They are only for accesing
s2 = _T("abc");//works the keyword mutable is given
return s1;
}

//U have to read more on const object tooSmile | :)


VIBIN

"Fool's run away,where angle's fear to tread"

GeneralRe: const keyword Pin
John R. Shaw2-Mar-07 20:25
John R. Shaw2-Mar-07 20:25 
QuestionInfo about CListCtrl ? Pin
sakthimuthu2-Mar-07 0:16
sakthimuthu2-Mar-07 0:16 
AnswerRe: Info about CListCtrl ? Pin
Hamid_RT2-Mar-07 0:20
Hamid_RT2-Mar-07 0:20 
QuestionAny error in my code! [modified] Pin
ShaluMalu2-Mar-07 0:16
ShaluMalu2-Mar-07 0:16 
AnswerRe: Any error in my code! Pin
prasad_som2-Mar-07 1:18
prasad_som2-Mar-07 1:18 
QuestionThread proble. Pin
david bagaturia2-Mar-07 0:14
david bagaturia2-Mar-07 0:14 
AnswerRe: Thread proble. Pin
_anil_2-Mar-07 0:23
_anil_2-Mar-07 0:23 
AnswerRe: Thread proble. Pin
User 5838522-Mar-07 0:36
User 5838522-Mar-07 0:36 
AnswerRe: Thread proble. [modified] Pin
prasad_som2-Mar-07 1:34
prasad_som2-Mar-07 1:34 
GeneralRe: Thread proble. Pin
David Crow2-Mar-07 3:02
David Crow2-Mar-07 3:02 
GeneralRe: Thread proble. Pin
prasad_som2-Mar-07 3:06
prasad_som2-Mar-07 3:06 
QuestionMDIChild not getting WM_CLOSE Pin
_anil_2-Mar-07 0:11
_anil_2-Mar-07 0:11 
AnswerRe: MDIChild not getting WM_CLOSE Pin
prasad_som2-Mar-07 1:28
prasad_som2-Mar-07 1:28 
GeneralRe: MDIChild not getting WM_CLOSE Pin
_anil_2-Mar-07 2:22
_anil_2-Mar-07 2:22 
GeneralRe: MDIChild not getting WM_CLOSE Pin
prasad_som2-Mar-07 2:30
prasad_som2-Mar-07 2:30 
QuestionRe: MDIChild not getting WM_CLOSE Pin
Mark Salsbery2-Mar-07 8:54
Mark Salsbery2-Mar-07 8:54 
QuestionHandle left-click on popup menu Pin
Nicolas Bonamy1-Mar-07 23:51
Nicolas Bonamy1-Mar-07 23:51 

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.