Click here to Skip to main content
15,915,509 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionEmbedded null characters in record Pin
BuckBrown16-Jul-07 8:36
BuckBrown16-Jul-07 8:36 
AnswerRe: Embedded null characters in record Pin
Paul Conrad21-Jul-07 18:53
professionalPaul Conrad21-Jul-07 18:53 
GeneralRe: Embedded null characters in record Pin
BuckBrown23-Jul-07 12:09
BuckBrown23-Jul-07 12:09 
GeneralRe: Embedded null characters in record Pin
Paul Conrad23-Jul-07 12:13
professionalPaul Conrad23-Jul-07 12:13 
Questionglobale vairable for two diffrente methode Pin
abbd16-Jul-07 5:54
abbd16-Jul-07 5:54 
AnswerRe: globale vairable for two diffrente methode Pin
Mark Salsbery16-Jul-07 7:02
Mark Salsbery16-Jul-07 7:02 
QuestionHow to overload "=" operator in a class? Pin
ShadowBoi15-Jul-07 17:59
ShadowBoi15-Jul-07 17:59 
AnswerRe: How to overload "=" operator in a class? Pin
Mark Salsbery16-Jul-07 7:16
Mark Salsbery16-Jul-07 7:16 
Here's one way (you'll have to do the actual deep copy yourself since I don't know the details of
your class - my sample implementation just demonstrates a possible deep copy scenario):
class Postfix
{
protected:
   someclass *pSomeClass;
public;
   Postfix* operator=(const Postfix *Src);
};
 
Postfix *Postfix::operator=(const Postfix *Src)
{
   // Perform deep copy of src to this object
   // (I used "this->" for clarity - these can be ommitted)
 
   if (this->pSomeClass)
      delete this->pSomeClass;
   this->pSomeClass = new someclass(...);
   ... copy Src->pSomeClass to this->pSomeClass ...
 
   return this;
}




Mark Salsbery
Microsoft MVP - Visual C++


"Great job team! Head back to base for debriefing and cocktails."

QuestionlistView c++ cli Pin
abbd15-Jul-07 8:42
abbd15-Jul-07 8:42 
AnswerRe: listView c++ cli [modified] Pin
Mark Salsbery15-Jul-07 10:01
Mark Salsbery15-Jul-07 10:01 
AnswerRe: listView c++ cli Pin
George L. Jackson15-Jul-07 15:46
George L. Jackson15-Jul-07 15:46 
GeneralRe: listView c++ cli Pin
Mark Salsbery16-Jul-07 7:18
Mark Salsbery16-Jul-07 7:18 
GeneralRe: listView c++ cli Pin
George L. Jackson17-Jul-07 11:44
George L. Jackson17-Jul-07 11:44 
GeneralRe: listView c++ cli Pin
Mark Salsbery17-Jul-07 13:12
Mark Salsbery17-Jul-07 13:12 
QuestionDeclaration of global variables Pin
abbd14-Jul-07 14:02
abbd14-Jul-07 14:02 
AnswerRe: Declaration of global variables Pin
Mark Salsbery14-Jul-07 16:52
Mark Salsbery14-Jul-07 16:52 
QuestionRe: Declaration of global variables Pin
abbd15-Jul-07 1:10
abbd15-Jul-07 1:10 
AnswerRe: Declaration of global variables Pin
Mark Salsbery15-Jul-07 6:26
Mark Salsbery15-Jul-07 6:26 
QuestionRe: Declaration of global variables Pin
abbd15-Jul-07 7:45
abbd15-Jul-07 7:45 
AnswerRe: Declaration of global variables Pin
Christian Graus15-Jul-07 7:49
protectorChristian Graus15-Jul-07 7:49 
QuestionRe: Declaration of global variables Pin
Mark Salsbery15-Jul-07 8:22
Mark Salsbery15-Jul-07 8:22 
QuestionDelegate (assocoation function) Pin
abbd14-Jul-07 8:43
abbd14-Jul-07 8:43 
AnswerRe: Delegate (assocoation function) Pin
Mark Salsbery14-Jul-07 11:59
Mark Salsbery14-Jul-07 11:59 
QuestionWhen is copy constructor must in a class? Pin
Karismatic14-Jul-07 0:09
Karismatic14-Jul-07 0:09 
AnswerRe: When is copy constructor must in a class? Pin
Mark Salsbery14-Jul-07 7:54
Mark Salsbery14-Jul-07 7:54 

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.