Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Different Between the operator '*' and '&' Pin
Cedric Moonen5-Mar-09 3:50
Cedric Moonen5-Mar-09 3:50 
GeneralRe: Different Between the operator '*' and '&' Pin
PIEBALDconsult5-Mar-09 3:55
mvePIEBALDconsult5-Mar-09 3:55 
GeneralRe: Different Between the operator '*' and '&' Pin
bulg5-Mar-09 7:02
bulg5-Mar-09 7:02 
GeneralRe: Different Between the operator '*' and '&' Pin
PIEBALDconsult5-Mar-09 10:38
mvePIEBALDconsult5-Mar-09 10:38 
AnswerRe: Different Between the operator '*' and '&' Pin
jeansea5-Mar-09 4:14
jeansea5-Mar-09 4:14 
AnswerRe: Different Between the operator '*' and '&' Pin
ky_rerun5-Mar-09 4:39
ky_rerun5-Mar-09 4:39 
GeneralRe: Different Between the operator '*' and '&' Pin
jeansea5-Mar-09 5:19
jeansea5-Mar-09 5:19 
GeneralRe: Different Between the operator '*' and '&' Pin
ky_rerun5-Mar-09 5:56
ky_rerun5-Mar-09 5:56 
This is because c++ accurately always passes by value When you pass a pointer you are passing the value of the pointer which is a memory address. when the compiler creates a stack frame the value of the memory address is put on the stack as a local variable when you change the value of that variable you point it to a new memory location and no longer maps to memory address of the variable in the caller. So any change will not affect the caller since you are changing the location associated with another variable in this case another local variable which is allso on the stack.



a programmer traped in a thugs body

AnswerRe: Different Between the operator '*' and '&' Pin
Maximilien5-Mar-09 4:42
Maximilien5-Mar-09 4:42 
GeneralRe: Different Between the operator '*' and '&' Pin
PIEBALDconsult5-Mar-09 10:38
mvePIEBALDconsult5-Mar-09 10:38 
GeneralRe: Different Between the operator '*' and '&' Pin
«_Superman_»5-Mar-09 17:34
professional«_Superman_»5-Mar-09 17:34 
QuestionCan anybody let me know how to handle the move event in SDI Pin
ashokbngr5-Mar-09 3:24
ashokbngr5-Mar-09 3:24 
AnswerRe: Can anybody let me know how to handle the move event in SDI Pin
Code-o-mat5-Mar-09 4:02
Code-o-mat5-Mar-09 4:02 
QuestionUnable to control mouse events Pin
AprNgp5-Mar-09 0:23
AprNgp5-Mar-09 0:23 
AnswerRe: Unable to control mouse events Pin
Akt_4_U5-Mar-09 0:29
Akt_4_U5-Mar-09 0:29 
GeneralRe: Unable to control mouse events Pin
AprNgp5-Mar-09 0:32
AprNgp5-Mar-09 0:32 
GeneralRe: Unable to control mouse events Pin
«_Superman_»5-Mar-09 0:42
professional«_Superman_»5-Mar-09 0:42 
GeneralRe: Unable to control mouse events Pin
AprNgp5-Mar-09 0:49
AprNgp5-Mar-09 0:49 
GeneralRe: Unable to control mouse events Pin
«_Superman_»5-Mar-09 0:57
professional«_Superman_»5-Mar-09 0:57 
GeneralRe: Unable to control mouse events Pin
Akt_4_U5-Mar-09 0:47
Akt_4_U5-Mar-09 0:47 
QuestionAssertion in atlsimpstr Pin
Davitor4-Mar-09 23:47
Davitor4-Mar-09 23:47 
AnswerRe: Assertion in atlsimpstr Pin
Hamid_RT4-Mar-09 23:59
Hamid_RT4-Mar-09 23:59 
AnswerRe: Assertion in atlsimpstr Pin
Cedric Moonen5-Mar-09 0:06
Cedric Moonen5-Mar-09 0:06 
QuestionProblem in Mutex with System Tray Icon. Pin
Le@rner4-Mar-09 23:25
Le@rner4-Mar-09 23:25 
AnswerRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat4-Mar-09 23:59
Code-o-mat4-Mar-09 23:59 

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.