Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Interprocess interacting Pin
Richard Ellis11-Dec-01 14:39
Richard Ellis11-Dec-01 14:39 
GeneralRe: Interprocess interacting Pin
Michael P Butler10-Dec-01 21:59
Michael P Butler10-Dec-01 21:59 
GeneralRe: Interprocess interacting Pin
10-Dec-01 22:52
suss10-Dec-01 22:52 
GeneralAIM interfacing... Pin
Cam10-Dec-01 16:53
Cam10-Dec-01 16:53 
Questionwhy like this? Pin
cococut10-Dec-01 15:30
cococut10-Dec-01 15:30 
AnswerRe: why like this? Pin
Christian Graus10-Dec-01 15:38
protectorChristian Graus10-Dec-01 15:38 
AnswerRe: why like this? Pin
Christian Graus10-Dec-01 15:42
protectorChristian Graus10-Dec-01 15:42 
AnswerRe: why like this? Pin
Michael Dunn10-Dec-01 16:41
sitebuilderMichael Dunn10-Dec-01 16:41 
The difference is that the first version has a non-const this pointer, so the returned value is a reference to an array value. That means you can change the contents of the Matrix, such as:
void f ( Matrix& m )
{
  m(2,5) = 3.14;  // calls double& Matrix::operator()
}
But in the second, this is const, thus the return value cannot reference the object. So this code is illegal:
void g ( const Matrix& m )
{
  m(4,1) = 42;  // calls double Matrix::operator() const
                     // error, can't assign to a plain double
}


--Mike--
http://home.inreach.com/mdunn/
Help! Help! I'm being repressed!!
Heart | [heart] your Green Alien | [Alien] with Good Stuff | [The good stuff] and Beer | [beer]
Sonork - 100.10414 AcidHelm
QuestionHow can I make address of a member-function (__cdecl *)??? Pin
10-Dec-01 9:39
suss10-Dec-01 9:39 
AnswerRe: How can I make address of a member-function (__cdecl *)??? Pin
Joaquín M López Muñoz10-Dec-01 10:05
Joaquín M López Muñoz10-Dec-01 10:05 
AnswerHere's how Pin
Ravi Bhavnani10-Dec-01 10:13
professionalRavi Bhavnani10-Dec-01 10:13 
AnswerRe: How can I make address of a member-function (__cdecl *)??? Pin
Ravi Bhavnani10-Dec-01 10:15
professionalRavi Bhavnani10-Dec-01 10:15 
AnswerRe: How can I make address of a member-function (__cdecl *)??? Pin
Fazlul Kabir10-Dec-01 10:40
Fazlul Kabir10-Dec-01 10:40 
AnswerSpecification of the problem. Pin
10-Dec-01 12:15
suss10-Dec-01 12:15 
GeneralRe: Specification of the problem. Pin
Joaquín M López Muñoz10-Dec-01 22:33
Joaquín M López Muñoz10-Dec-01 22:33 
GeneralRe: Specification of the problem. Pin
11-Dec-01 6:15
suss11-Dec-01 6:15 
GeneralRe: char* byte* DLL-VC++ and Delphi Please help ! Pin
Joaquín M López Muñoz10-Dec-01 9:37
Joaquín M López Muñoz10-Dec-01 9:37 
QuestionUSB support for VC++???? Pin
Johnny_8910-Dec-01 8:23
Johnny_8910-Dec-01 8:23 
QuestionCMenu::CheckMenuItem(...)??? Pin
Rickard Andersson2010-Dec-01 7:38
Rickard Andersson2010-Dec-01 7:38 
AnswerRe: CMenu::CheckMenuItem(...)??? Pin
Christian Graus10-Dec-01 11:12
protectorChristian Graus10-Dec-01 11:12 
AnswerRe: CMenu::CheckMenuItem(...)??? Pin
Ravi Bhavnani11-Dec-01 5:18
professionalRavi Bhavnani11-Dec-01 5:18 
Generalchar* byte* DLL-VC++ and Delphi Please help ! Pin
mimi10-Dec-01 7:36
mimi10-Dec-01 7:36 
GeneralCreate a CBitmap object, draw in it, save in (.bmp file) Pin
Remi Morin10-Dec-01 7:34
Remi Morin10-Dec-01 7:34 
GeneralRe: Create a CBitmap object, draw in it, save in (.bmp file) Pin
Bill Wilson10-Dec-01 7:42
Bill Wilson10-Dec-01 7:42 
QuestionHow to insert characters in a CRichEditViewed application? Pin
davilism10-Dec-01 7:33
davilism10-Dec-01 7:33 

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.