Click here to Skip to main content
15,886,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: input both text as well as image Pin
bob169721-Dec-07 19:40
bob169721-Dec-07 19:40 
QuestionWhere to initialize the dialog in CDialogBar? Pin
followait1-Dec-07 15:50
followait1-Dec-07 15:50 
AnswerRe: Where to initialize the dialog in CDialogBar? Pin
Mark Salsbery1-Dec-07 16:27
Mark Salsbery1-Dec-07 16:27 
AnswerRe: Where to initialize the dialog in CDialogBar? Pin
bob169721-Dec-07 17:36
bob169721-Dec-07 17:36 
AnswerRe: Where to initialize the dialog in CDialogBar? Pin
Mark Salsbery1-Dec-07 18:25
Mark Salsbery1-Dec-07 18:25 
GeneralRe: Where to initialize the dialog in CDialogBar? Pin
followait1-Dec-07 19:42
followait1-Dec-07 19:42 
Questionparameters vs members Pin
bob169721-Dec-07 14:06
bob169721-Dec-07 14:06 
AnswerRe: parameters vs members Pin
Mark Salsbery1-Dec-07 15:56
Mark Salsbery1-Dec-07 15:56 
bob16972 wrote:
would it be more efficient to make the methods non-static and simply require the parameters in a constructor


I would say yes, slightly.

In the static A calls static B calls static C scenario, the 10 params are pushed on and copied off the stack 3 times.

In a constructor the 10 params would only need to be pushed/copied once (plus there's an additional call/return to
the constructor added on).  The 3 method calls only have the implicit "this" pointer pushed on the stack.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: parameters vs members Pin
bob169721-Dec-07 17:14
bob169721-Dec-07 17:14 
QuestionHeader Wrapper Symbol Pin
steph51-Dec-07 11:21
steph51-Dec-07 11:21 
AnswerRe: Header Wrapper Symbol Pin
Bram van Kampen1-Dec-07 11:56
Bram van Kampen1-Dec-07 11:56 
AnswerRe: Header Wrapper Symbol Pin
bob169721-Dec-07 14:22
bob169721-Dec-07 14:22 
Questionreg: error C2440: 'specialization' : cannot convert from '' to ' (__cdecl *)(const char *)' [modified] Pin
naresh_t1-Dec-07 3:45
naresh_t1-Dec-07 3:45 
GeneralRe: reg: error C2440: 'specialization' : cannot convert from '' to ' (__cdecl *)(const char *)' Pin
David Crow14-Mar-08 5:59
David Crow14-Mar-08 5:59 
Questionclasses and inline functions Pin
Lutosław1-Dec-07 2:39
Lutosław1-Dec-07 2:39 
GeneralRe: classes and inline functions Pin
David Crow14-Mar-08 6:03
David Crow14-Mar-08 6:03 
QuestionBitmap button Pin
Schehaider_Aymen1-Dec-07 2:34
Schehaider_Aymen1-Dec-07 2:34 
AnswerRe: Bitmap button Pin
Hamid_RT1-Dec-07 3:14
Hamid_RT1-Dec-07 3:14 
GeneralRe: Bitmap button Pin
Schehaider_Aymen1-Dec-07 3:18
Schehaider_Aymen1-Dec-07 3:18 
GeneralRe: Bitmap button Pin
Schehaider_Aymen1-Dec-07 3:23
Schehaider_Aymen1-Dec-07 3:23 
GeneralRe: Bitmap button Pin
Hamid_RT1-Dec-07 4:44
Hamid_RT1-Dec-07 4:44 
QuestionProblem in capturing the enter event of an edit control. Pin
chandu0041-Dec-07 0:50
chandu0041-Dec-07 0:50 
AnswerRe: Problem in capturing the enter event of an edit control. Pin
Jijo.Raj2-Dec-07 0:59
Jijo.Raj2-Dec-07 0:59 
QuestionNo CPen? Pin
Haakon S.1-Dec-07 0:29
Haakon S.1-Dec-07 0:29 
AnswerRe: No CPen? Pin
CPallini1-Dec-07 0:44
mveCPallini1-Dec-07 0:44 

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.