Click here to Skip to main content
15,891,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioninput both text as well as image Pin
keyto1-Dec-07 18:23
keyto1-Dec-07 18:23 
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 
If you have a utility class with some static methods A, B, and C and each has identical parameter lists with 10 parameters each, and A usually calls B and B calls C, would it be more efficient to make the methods non-static and simply require the parameters in a constructor (setting member variables in the initialization list) and remove the paramters from A, B, and C and have those methods refer to the member variables?

Keep in mind the typical usage scenario would instantiate an instance of the class, call method A, then the object would go out of scope soon after without calling a method on the object again while in the same scope.

Method A is called quite a bit during a window refresh all over the code so any ideas on which design would likely yield less overhead in general would be greatly appreciated.

AnswerRe: parameters vs members Pin
Mark Salsbery1-Dec-07 15:56
Mark Salsbery1-Dec-07 15:56 
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 

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.