Click here to Skip to main content
15,917,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: catch mouse event Pin
Sabry190525-Dec-07 2:06
Sabry190525-Dec-07 2:06 
QuestionHow to Delete List of files in a Folder Pin
santhoshv8415-Dec-07 19:54
santhoshv8415-Dec-07 19:54 
AnswerRe: How to Delete List of files in a Folder Pin
Rajasekharan Vengalil15-Dec-07 20:32
Rajasekharan Vengalil15-Dec-07 20:32 
AnswerRe: How to Delete List of files in a Folder Pin
Hamid_RT16-Dec-07 2:10
Hamid_RT16-Dec-07 2:10 
GeneralThe type of *this Pin
George_George15-Dec-07 19:50
George_George15-Dec-07 19:50 
GeneralRe: The type of *this Pin
santhoshv8415-Dec-07 20:06
santhoshv8415-Dec-07 20:06 
GeneralRe: The type of *this Pin
foobar0715-Dec-07 20:19
foobar0715-Dec-07 20:19 
GeneralRe: The type of *this Pin
George_George15-Dec-07 21:57
George_George15-Dec-07 21:57 
GeneralRe: The type of *this Pin
Rajasekharan Vengalil15-Dec-07 20:35
Rajasekharan Vengalil15-Dec-07 20:35 
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 
Since foo1 returns a reference (which is really just a pointer), it can just return the address of the 'this' object.

The other function, foo2 actually returns an object of type A. In order to do that, it invokes the copy constructor for A, copying the contents of this to the destination.
Software Zen: delete this;

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 
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 

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.