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

Managed C++/CLI

 
AnswerRe: can we declare destructor of a class as private? (C++) Pin
Johann Gerell17-Sep-05 13:10
Johann Gerell17-Sep-05 13:10 
GeneralRe: can we declare destructor of a class as private? (C++) Pin
BlitzPackage17-Sep-05 13:57
BlitzPackage17-Sep-05 13:57 
AnswerRe: can we declare destructor of a class as private? (C++) Pin
Alexander M.,18-Sep-05 3:42
Alexander M.,18-Sep-05 3:42 
QuestionC/C++ Question Pin
Rajesh_K_Sharma17-Sep-05 7:05
Rajesh_K_Sharma17-Sep-05 7:05 
AnswerRe: C/C++ Question Pin
John M. Drescher17-Sep-05 8:31
John M. Drescher17-Sep-05 8:31 
GeneralRe: C/C++ Question Pin
RichardS17-Sep-05 16:47
RichardS17-Sep-05 16:47 
QuestionQuestion About Pointers in C++ Pin
17-Sep-05 5:54
suss17-Sep-05 5:54 
AnswerRe: Question About Pointers in C++ Pin
TheGreatAndPowerfulOz17-Sep-05 15:03
TheGreatAndPowerfulOz17-Sep-05 15:03 
First assume
objectPtr->leftPtr = 1111
and
smallObject->leftPtr = 2222
then

BlitzPackage wrote:
objectPtr->leftPtr = smallObjectPtr->leftPtr

will assign the value of 2222 to objectPtr->leftPtr

while

BlitzPackage wrote:
*objectPtr->leftPtr = *smallObject->leftPtr

This will assign the contents of the object pointed to by smallObject->leftPtr to the object pointed to by objectPtr->leftPtr. In otherwords it will call the assignment operator [i.e. the OtherObject::operator=(const OtherObject&) function].

BlitzPackage wrote:
objectPtr->leftPtr = *smallObject->leftPtr;

Is there anything wrong here? That depends on the definition of the class OtherObject. But the answer is usually, yes. The diference is if the OtherObject class overrides the address-of operator (&) [i.e. the OtherObject* OtherObject::operator&() function], which would return the address of an OtherObject, premuably "this".
GeneralRe: Question About Pointers in C++ Pin
BlitzPackage17-Sep-05 15:35
BlitzPackage17-Sep-05 15:35 
GeneralRe: Question About Pointers in C++ Pin
Achim Klein17-Sep-05 15:42
Achim Klein17-Sep-05 15:42 
GeneralRe: Question About Pointers in C++ Pin
BlitzPackage17-Sep-05 15:46
BlitzPackage17-Sep-05 15:46 
GeneralRe: Question About Pointers in C++ Pin
Achim Klein17-Sep-05 15:56
Achim Klein17-Sep-05 15:56 
GeneralRe: Question About Pointers in C++ Pin
RichardS17-Sep-05 17:31
RichardS17-Sep-05 17:31 
GeneralRe: Question About Pointers in C++ Pin
Achim Klein18-Sep-05 1:41
Achim Klein18-Sep-05 1:41 
AnswerRe: Question About Pointers in C++ Pin
Achim Klein17-Sep-05 15:33
Achim Klein17-Sep-05 15:33 
GeneralRe: Question About Pointers in C++ Pin
BlitzPackage17-Sep-05 15:39
BlitzPackage17-Sep-05 15:39 
GeneralRe: Question About Pointers in C++ Pin
Johann Gerell17-Sep-05 19:24
Johann Gerell17-Sep-05 19:24 
GeneralRe: Question About Pointers in C++ Pin
Achim Klein18-Sep-05 1:50
Achim Klein18-Sep-05 1:50 
AnswerRe: Question About Pointers in C++ Pin
Johann Gerell17-Sep-05 19:48
Johann Gerell17-Sep-05 19:48 
QuestionAfxGetThread returning NULL in Debug Mode and causing crash Pin
Anonymous16-Sep-05 17:46
Anonymous16-Sep-05 17:46 
QuestionPure virtual function calls in Constructor Pin
RichardS16-Sep-05 11:05
RichardS16-Sep-05 11:05 
AnswerRe: Pure virtual function calls in Constructor Pin
S. Senthil Kumar16-Sep-05 20:16
S. Senthil Kumar16-Sep-05 20:16 
GeneralRe: Pure virtual function calls in Constructor Pin
RichardS17-Sep-05 16:33
RichardS17-Sep-05 16:33 
AnswerRe: Pure virtual function calls in Constructor Pin
Nemanja Trifunovic17-Sep-05 4:35
Nemanja Trifunovic17-Sep-05 4:35 
GeneralRe: Pure virtual function calls in Constructor Pin
RichardS17-Sep-05 16:31
RichardS17-Sep-05 16:31 

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.