Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: problem releasing .exe to vs2008 users Pin
«_Superman_»28-May-11 17:31
professional«_Superman_»28-May-11 17:31 
QuestionDoes VS resource compiler support PNG file Pin
Cold_Fearing_Bird28-May-11 2:36
Cold_Fearing_Bird28-May-11 2:36 
AnswerRe: Does VS resource compiler support PNG file Pin
Alain Rist28-May-11 3:36
Alain Rist28-May-11 3:36 
QuestionPointers to member functions which return pointers to themselves Pin
Ray Hagstrom27-May-11 11:08
Ray Hagstrom27-May-11 11:08 
QuestionRe: Pointers to member functions which return pointers to themselves Pin
CPallini28-May-11 3:01
mveCPallini28-May-11 3:01 
AnswerRe: Pointers to member functions which return pointers to themselves Pin
Ray Hagstrom31-May-11 12:40
Ray Hagstrom31-May-11 12:40 
GeneralRe: Pointers to member functions which return pointers to themselves Pin
CPallini31-May-11 21:08
mveCPallini31-May-11 21:08 
AnswerRe: Pointers to member functions which return pointers to themselves Pin
Stefan_Lang30-May-11 4:50
Stefan_Lang30-May-11 4:50 
This would be a recursive type: "A function that returns a function that returns a function that ...". You can't do that!

The question now is what you want to achieve with that? To me that code looks rather obfuscated, making it error prone and hard to maintain. The sequence of function calls is encoded in the function implementations, rather in the implementation of the calling function. This is not only breaking the concept of encapsulation, it is also prone to mistakes causing endless loops, and later changes such as introducing more of these functions or changing the sequence will be very hard.

Why do you not simply write a sequence of function calls instead?
GeneralRe: Pointers to member functions which return pointers to themselves Pin
Ray Hagstrom31-May-11 12:46
Ray Hagstrom31-May-11 12:46 
GeneralRe: Pointers to member functions which return pointers to themselves Pin
Stefan_Lang31-May-11 21:15
Stefan_Lang31-May-11 21:15 
AnswerRe: Pointers to member functions which return pointers to themselves Pin
saephoed8-Jan-14 11:22
saephoed8-Jan-14 11:22 
QuestionAlphaBlend doesn't work properly Pin
Cold_Fearing_Bird27-May-11 9:06
Cold_Fearing_Bird27-May-11 9:06 
QuestionRe: AlphaBlend doesn't work properly Pin
Mark Salsbery27-May-11 15:17
Mark Salsbery27-May-11 15:17 
AnswerRe: AlphaBlend doesn't work properly Pin
Cold_Fearing_Bird27-May-11 18:50
Cold_Fearing_Bird27-May-11 18:50 
Questionchange selection background color of a CRichEditCtrl Pin
includeh1027-May-11 8:14
includeh1027-May-11 8:14 
Questionadd WM_SETFONT message handle in MFC Pin
includeh1027-May-11 5:37
includeh1027-May-11 5:37 
QuestionRe: add WM_SETFONT message handle in MFC Pin
David Crow27-May-11 6:06
David Crow27-May-11 6:06 
AnswerRe: add WM_SETFONT message handle in MFC Pin
వేంకటనారాయణ(venkatmakam)27-May-11 6:12
వేంకటనారాయణ(venkatmakam)27-May-11 6:12 
QuestionRe: add WM_SETFONT message handle in MFC Pin
David Crow27-May-11 6:14
David Crow27-May-11 6:14 
AnswerRe: add WM_SETFONT message handle in MFC Pin
Luc Pattyn27-May-11 6:53
sitebuilderLuc Pattyn27-May-11 6:53 
GeneralRe: add WM_SETFONT message handle in MFC Pin
David Crow27-May-11 7:05
David Crow27-May-11 7:05 
AnswerRe: add WM_SETFONT message handle in MFC Pin
Mark Salsbery27-May-11 7:03
Mark Salsbery27-May-11 7:03 
QuestionCToolbar Pin
si_6927-May-11 5:19
si_6927-May-11 5:19 
QuestionSetWindowRgn Menu Problem Pin
guojianbo27-May-11 1:18
guojianbo27-May-11 1:18 
QuestionRe: SetWindowRgn Menu Problem Pin
వేంకటనారాయణ(venkatmakam)27-May-11 3:34
వేంకటనారాయణ(venkatmakam)27-May-11 3:34 

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.