Click here to Skip to main content
15,892,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Differentiating 2 methods with the same name for a pointer Pin
Richard MacCutchan6-Jan-10 2:12
mveRichard MacCutchan6-Jan-10 2:12 
GeneralRe: Differentiating 2 methods with the same name for a pointer Pin
Code-o-mat6-Jan-10 2:15
Code-o-mat6-Jan-10 2:15 
GeneralRe: Differentiating 2 methods with the same name for a pointer Pin
molesworth6-Jan-10 2:51
molesworth6-Jan-10 2:51 
GeneralRe: Differentiating 2 methods with the same name for a pointer Pin
Code-o-mat6-Jan-10 3:44
Code-o-mat6-Jan-10 3:44 
GeneralRe: Differentiating 2 methods with the same name for a pointer Pin
Richard MacCutchan6-Jan-10 3:36
mveRichard MacCutchan6-Jan-10 3:36 
GeneralRe: Differentiating 2 methods with the same name for a pointer Pin
Code-o-mat6-Jan-10 3:47
Code-o-mat6-Jan-10 3:47 
GeneralRe: Differentiating 2 methods with the same name for a pointer Pin
Richard MacCutchan6-Jan-10 3:55
mveRichard MacCutchan6-Jan-10 3:55 
AnswerRe: Differentiating 2 methods with the same name for a pointer Pin
SimonSays6-Jan-10 5:07
SimonSays6-Jan-10 5:07 
In your first example, the one without the C-style cast, the type system should prevent you from performing an illegal assignment -- in other words the right thing would have to happen or a compiler error be generated. Because the compiler will not allow the following:

typedef int(* FUNC_ONE)(int);
int Func2Parm(int x, int y)
{
return x + y;
}

FUNC_ONE pFuncOne = Func2Parm;

Once you introduce the explicit cast, I am not sure what will happen. I would have guessed that the compiler would report an ambiguity error (after all it could cast either pointer that way).
AnswerRe: Differentiating 2 methods with the same name for a pointer Pin
Moak6-Jan-10 15:30
Moak6-Jan-10 15:30 
GeneralRe: Differentiating 2 methods with the same name for a pointer Pin
Code-o-mat6-Jan-10 21:29
Code-o-mat6-Jan-10 21:29 
GeneralRe: Differentiating 2 methods with the same name for a pointer Pin
Moak7-Jan-10 0:32
Moak7-Jan-10 0:32 
QuestionDataBase Pin
jannathali5-Jan-10 22:38
jannathali5-Jan-10 22:38 
AnswerRe: DataBase Pin
_AnsHUMAN_ 5-Jan-10 23:09
_AnsHUMAN_ 5-Jan-10 23:09 
AnswerRe: DataBase Pin
«_Superman_»6-Jan-10 0:26
professional«_Superman_»6-Jan-10 0:26 
QuestionCapturing check/uncheck in checkbox in listcontrol Pin
itkid5-Jan-10 22:16
itkid5-Jan-10 22:16 
AnswerRe: Capturing check/uncheck in checkbox in listcontrol Pin
Naveen5-Jan-10 22:46
Naveen5-Jan-10 22:46 
GeneralRe: Capturing check/uncheck in checkbox in listcontrol Pin
itkid5-Jan-10 22:49
itkid5-Jan-10 22:49 
GeneralRe: Capturing check/uncheck in checkbox in listcontrol Pin
Naveen5-Jan-10 23:15
Naveen5-Jan-10 23:15 
Questionhow to contact the file extension with file type? Pin
nenfa5-Jan-10 20:37
nenfa5-Jan-10 20:37 
AnswerRe: how to contact the file extension with file type? Pin
Naveen5-Jan-10 21:17
Naveen5-Jan-10 21:17 
AnswerRe: how to contact the file extension with file type? Pin
Richard MacCutchan5-Jan-10 21:21
mveRichard MacCutchan5-Jan-10 21:21 
Questionhow to retrieve the hicons on the desktop? Pin
nenfa5-Jan-10 20:21
nenfa5-Jan-10 20:21 
AnswerRe: how to retrieve the hicons on the desktop? Pin
Code-o-mat5-Jan-10 22:26
Code-o-mat5-Jan-10 22:26 
QuestionResolution for Dialog Pin
Anu_Bala5-Jan-10 19:24
Anu_Bala5-Jan-10 19:24 
AnswerRe: Resolution for Dialog Pin
KingsGambit5-Jan-10 20:13
KingsGambit5-Jan-10 20:13 

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.