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

C / C++ / MFC

 
GeneralRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Roger Stoltz19-Nov-08 7:10
Roger Stoltz19-Nov-08 7:10 
AnswerRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Roger Stoltz19-Nov-08 6:08
Roger Stoltz19-Nov-08 6:08 
QuestionRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Ahmed Charfeddine19-Nov-08 6:25
Ahmed Charfeddine19-Nov-08 6:25 
AnswerRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Roger Stoltz19-Nov-08 6:38
Roger Stoltz19-Nov-08 6:38 
GeneralRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Ahmed Charfeddine19-Nov-08 22:22
Ahmed Charfeddine19-Nov-08 22:22 
AnswerRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Roger Stoltz19-Nov-08 22:57
Roger Stoltz19-Nov-08 22:57 
GeneralRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Ahmed Charfeddine19-Nov-08 23:24
Ahmed Charfeddine19-Nov-08 23:24 
AnswerRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
sashoalm19-Nov-08 9:05
sashoalm19-Nov-08 9:05 
Do you mean to pass an invalid reference, like passing a NULL pointer? That can cause the program to crash and I can't imagine why you would want to do that. If that's what you want to do, then you can pass a dereferenced NULL pointer. But if the function tries to use that variable it will crash.

void foo(vartype& a);

vartype* ptr = NULL;
foo(*ptr);


There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

GeneralRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. [SOLVED] Pin
Ahmed Charfeddine19-Nov-08 21:50
Ahmed Charfeddine19-Nov-08 21:50 
AnswerRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Ahmed Charfeddine19-Nov-08 22:14
Ahmed Charfeddine19-Nov-08 22:14 
GeneralRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
CPallini19-Nov-08 23:10
mveCPallini19-Nov-08 23:10 
GeneralRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Ahmed Charfeddine19-Nov-08 23:30
Ahmed Charfeddine19-Nov-08 23:30 
GeneralRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. [modified] Pin
CPallini19-Nov-08 23:49
mveCPallini19-Nov-08 23:49 
GeneralRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
Ahmed Charfeddine24-Nov-08 2:21
Ahmed Charfeddine24-Nov-08 2:21 
GeneralRe: Calling a function that accept a refrence to a variable when we don't have a reference to pass.. Pin
CPallini24-Nov-08 2:43
mveCPallini24-Nov-08 2:43 
QuestionButton control Pin
jimjim73319-Nov-08 5:33
jimjim73319-Nov-08 5:33 
AnswerRe: Button control Pin
PJ Arends19-Nov-08 6:12
professionalPJ Arends19-Nov-08 6:12 
AnswerRe: Button control Pin
Nishad S19-Nov-08 17:10
Nishad S19-Nov-08 17:10 
GeneralRe: Button control Pin
jimjim73319-Nov-08 23:45
jimjim73319-Nov-08 23:45 
QuestionVisual C++ 2003 Redistributables [Solved] Pin
bob1697219-Nov-08 5:12
bob1697219-Nov-08 5:12 
AnswerRe: Visual C++ 2003 Redistributables [Solved] Pin
bob1697219-Nov-08 5:29
bob1697219-Nov-08 5:29 
QuestionMFC and Vista General Question Pin
sabdalla8019-Nov-08 4:42
sabdalla8019-Nov-08 4:42 
AnswerRe: MFC and Vista General Question Pin
bob1697219-Nov-08 4:56
bob1697219-Nov-08 4:56 
GeneralRe: MFC and Vista General Question Pin
sabdalla8019-Nov-08 5:32
sabdalla8019-Nov-08 5:32 
GeneralRe: MFC and Vista General Question Pin
bob1697219-Nov-08 6:04
bob1697219-Nov-08 6:04 

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.