Click here to Skip to main content
15,867,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionA pointer reference as l-value Pin
George Nistor20-Jan-13 2:07
George Nistor20-Jan-13 2:07 
AnswerRe: A pointer reference as l-value Pin
Maximilien20-Jan-13 3:18
Maximilien20-Jan-13 3:18 
AnswerRe: A pointer reference as l-value Pin
Richard MacCutchan20-Jan-13 3:56
mveRichard MacCutchan20-Jan-13 3:56 
GeneralRe: A pointer reference as l-value Pin
George Nistor20-Jan-13 4:02
George Nistor20-Jan-13 4:02 
GeneralRe: A pointer reference as l-value Pin
Richard MacCutchan20-Jan-13 4:11
mveRichard MacCutchan20-Jan-13 4:11 
GeneralRe: A pointer reference as l-value Pin
Freak3021-Jan-13 4:43
Freak3021-Jan-13 4:43 
GeneralRe: A pointer reference as l-value Pin
George Nistor21-Jan-13 5:37
George Nistor21-Jan-13 5:37 
GeneralRe: A pointer reference as l-value Pin
Freak3021-Jan-13 22:08
Freak3021-Jan-13 22:08 
In the function GetPtrEx2() the address of the parameter will be passed on the stack. So with the assignment you change the address the pointer you called the function with points to.

You should however check your constructor. I don't think it will work as intended.
QuestionThe 'rename' function gives errno == -1 Pin
Anthony Appleyard20-Jan-13 1:12
Anthony Appleyard20-Jan-13 1:12 
AnswerRe: The 'rename' function gives errno == -1 Pin
pasztorpisti20-Jan-13 1:26
pasztorpisti20-Jan-13 1:26 
GeneralRe: The 'rename' function gives errno == -1 Pin
Anthony Appleyard20-Jan-13 3:01
Anthony Appleyard20-Jan-13 3:01 
AnswerRe: The 'rename' function gives errno == -1 Pin
Richard MacCutchan20-Jan-13 3:50
mveRichard MacCutchan20-Jan-13 3:50 
GeneralRe: The 'rename' function gives errno == -1 Pin
Anthony Appleyard20-Jan-13 4:32
Anthony Appleyard20-Jan-13 4:32 
GeneralRe: The 'rename' function gives errno == -1 Pin
Richard MacCutchan20-Jan-13 4:37
mveRichard MacCutchan20-Jan-13 4:37 
GeneralRe: The 'rename' function gives errno == -1 Pin
Anthony Appleyard20-Jan-13 5:02
Anthony Appleyard20-Jan-13 5:02 
GeneralRe: The 'rename' function gives errno == -1 Pin
Richard MacCutchan20-Jan-13 5:04
mveRichard MacCutchan20-Jan-13 5:04 
GeneralRe: The 'rename' function gives errno == -1 Pin
Anthony Appleyard20-Jan-13 5:11
Anthony Appleyard20-Jan-13 5:11 
GeneralRe: The 'rename' function gives errno == -1 Pin
Richard MacCutchan20-Jan-13 5:33
mveRichard MacCutchan20-Jan-13 5:33 
GeneralRe: The 'rename' function gives errno == -1 Pin
Anthony Appleyard20-Jan-13 5:57
Anthony Appleyard20-Jan-13 5:57 
GeneralRe: The 'rename' function gives errno == -1 Pin
Richard MacCutchan20-Jan-13 6:20
mveRichard MacCutchan20-Jan-13 6:20 
GeneralRe: The 'rename' function gives errno == -1 Pin
Anthony Appleyard20-Jan-13 11:03
Anthony Appleyard20-Jan-13 11:03 
GeneralRe: The 'rename' function gives errno == -1 Pin
Richard MacCutchan20-Jan-13 21:52
mveRichard MacCutchan20-Jan-13 21:52 
GeneralRe: The 'rename' function gives errno == -1 Pin
Anthony Appleyard20-Jan-13 22:11
Anthony Appleyard20-Jan-13 22:11 
GeneralRe: The 'rename' function gives errno == -1 Pin
Richard MacCutchan20-Jan-13 23:00
mveRichard MacCutchan20-Jan-13 23:00 
QuestionRe: The 'rename' function gives errno == -1 Pin
David Crow20-Jan-13 15:17
David Crow20-Jan-13 15:17 

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.