Click here to Skip to main content
16,008,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Thread Message Pin
Philip Patrick9-May-02 23:49
professionalPhilip Patrick9-May-02 23:49 
GeneralRe: Thread Message Pin
Hesham Amin10-May-02 1:56
Hesham Amin10-May-02 1:56 
GeneralYou are welcome Pin
Philip Patrick10-May-02 3:20
professionalPhilip Patrick10-May-02 3:20 
Generala simple c++ question about operator= Pin
denkor9-May-02 22:55
denkor9-May-02 22:55 
GeneralRe: a simple c++ question about operator= Pin
Maxwell Chen9-May-02 23:06
Maxwell Chen9-May-02 23:06 
GeneralRe: a simple c++ question about operator= Pin
Christian Graus9-May-02 23:07
protectorChristian Graus9-May-02 23:07 
GeneralRe: a simple c++ question about operator= Pin
Maxwell Chen9-May-02 23:16
Maxwell Chen9-May-02 23:16 
GeneralRe: a simple c++ question about operator= Pin
Niklas L12-May-02 21:54
Niklas L12-May-02 21:54 
This is actually a trivial class, where you don't really need to overload operator=, since members are copied by default. If, however, your class contains pointers or references to objects, then you will need to overload the operator. This operator should always look for, and avoid, self assignments:
CMyclass & CMyclass::operator=(const CMyclass & toCopy)
{
  if (this != &toCopy)
  {
    m_iCount = toCopy.m_iCount;
    m_iIndex = toCopy.m_iIndex;
  }
  return *this;
}

GeneralAnd copy constructor issue...... Pin
Maxwell Chen9-May-02 23:11
Maxwell Chen9-May-02 23:11 
GeneralThank you ,Maxwell Chen and Christian Graus ! Pin
denkor10-May-02 0:48
denkor10-May-02 0:48 
GeneralRe: Thank you ,Maxwell Chen and Christian Graus ! Pin
Maxwell Chen10-May-02 0:54
Maxwell Chen10-May-02 0:54 
QuestionHow to hide and/or disable PropertyPage Pin
Eugene Pustovoyt9-May-02 22:07
Eugene Pustovoyt9-May-02 22:07 
AnswerRe: How to hide and/or disable PropertyPage Pin
Tom Archer9-May-02 22:28
Tom Archer9-May-02 22:28 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt9-May-02 23:56
Eugene Pustovoyt9-May-02 23:56 
GeneralRe: How to hide and/or disable PropertyPage Pin
Tom Archer10-May-02 5:45
Tom Archer10-May-02 5:45 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt10-May-02 7:02
Eugene Pustovoyt10-May-02 7:02 
GeneralRe: How to hide and/or disable PropertyPage Pin
Tom Archer10-May-02 7:08
Tom Archer10-May-02 7:08 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt10-May-02 7:58
Eugene Pustovoyt10-May-02 7:58 
GeneralRe: How to hide and/or disable PropertyPage Pin
Tom Archer10-May-02 7:59
Tom Archer10-May-02 7:59 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt10-May-02 8:45
Eugene Pustovoyt10-May-02 8:45 
GeneralRe: How to hide and/or disable PropertyPage Pin
Tom Archer10-May-02 11:20
Tom Archer10-May-02 11:20 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt15-May-02 6:51
Eugene Pustovoyt15-May-02 6:51 
AnswerRe: How to hide and/or disable PropertyPage Pin
Prem Kumar9-May-02 22:28
Prem Kumar9-May-02 22:28 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt10-May-02 1:39
Eugene Pustovoyt10-May-02 1:39 
Generalbreak vs continue Pin
NicholasCougar9-May-02 21:46
NicholasCougar9-May-02 21:46 

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.