Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The type of *this Pin
George_George15-Dec-07 21:55
George_George15-Dec-07 21:55 
GeneralRe: The type of *this Pin
Rajasekharan Vengalil15-Dec-07 22:03
Rajasekharan Vengalil15-Dec-07 22:03 
GeneralRe: The type of *this Pin
George_George15-Dec-07 22:11
George_George15-Dec-07 22:11 
GeneralRe: The type of *this Pin
Gary R. Wheeler16-Dec-07 4:20
Gary R. Wheeler16-Dec-07 4:20 
GeneralRe: The type of *this Pin
George_George16-Dec-07 20:27
George_George16-Dec-07 20:27 
GeneralRe: The type of *this Pin
Gary R. Wheeler18-Dec-07 14:36
Gary R. Wheeler18-Dec-07 14:36 
GeneralRe: The type of *this Pin
George_George18-Dec-07 18:49
George_George18-Dec-07 18:49 
GeneralRe: The type of *this Pin
Gary R. Wheeler19-Dec-07 12:29
Gary R. Wheeler19-Dec-07 12:29 
I believe your statements are both true. The compiler is supposed to turn #1 into this:
A a(fun2());
automatically, which is a call to the copy constructor.

#2 obviously calls the assignment operator. Note that the default constructor for A is called first, when the variable is declared.
Software Zen: delete this;

GeneralRe: The type of *this Pin
George_George19-Dec-07 18:52
George_George19-Dec-07 18:52 
GeneralRe: The type of *this Pin
CPallini15-Dec-07 22:14
mveCPallini15-Dec-07 22:14 
GeneralRe: The type of *this Pin
George_George15-Dec-07 22:40
George_George15-Dec-07 22:40 
Questionreturn reference to local variable, good code? Pin
George_George15-Dec-07 18:46
George_George15-Dec-07 18:46 
AnswerRe: return reference to local variable, good code? Pin
Rajasekharan Vengalil15-Dec-07 20:38
Rajasekharan Vengalil15-Dec-07 20:38 
GeneralRe: return reference to local variable, good code? Pin
George_George15-Dec-07 21:31
George_George15-Dec-07 21:31 
QuestionHow to get Instance of Main Window from MFC Activex Pin
ashishbhatt15-Dec-07 18:45
ashishbhatt15-Dec-07 18:45 
AnswerRe: How to get Instance of Main Window from MFC Activex Pin
Mike Dimmick16-Dec-07 1:37
Mike Dimmick16-Dec-07 1:37 
GeneralRe: How to get Instance of Main Window from MFC Activex Pin
ashishbhatt16-Dec-07 2:00
ashishbhatt16-Dec-07 2:00 
GeneralGDI+ Alpha changed, the image is still opaque why? [modified] Pin
followait15-Dec-07 18:01
followait15-Dec-07 18:01 
GeneralRe: GDI+ Alpha changed, the image is still opaque why? Pin
Mark Salsbery16-Dec-07 6:25
Mark Salsbery16-Dec-07 6:25 
GeneralRe: GDI+ Alpha changed, the image is still opaque why? Pin
followait16-Dec-07 6:29
followait16-Dec-07 6:29 
GeneralGDI+ how to do bitmap mask efficiently Pin
followait15-Dec-07 16:07
followait15-Dec-07 16:07 
GeneralRe: GDI+ how to do bitmap mask efficiently Pin
Christian Graus15-Dec-07 16:15
protectorChristian Graus15-Dec-07 16:15 
GeneralRe: GDI+ how to do bitmap mask efficiently Pin
Mark Salsbery16-Dec-07 6:33
Mark Salsbery16-Dec-07 6:33 
GeneralRe: GDI+ how to do bitmap mask efficiently Pin
followait16-Dec-07 15:24
followait16-Dec-07 15:24 
QuestionImbed C++ Code Pin
BRIMID15-Dec-07 13:48
BRIMID15-Dec-07 13:48 

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.