Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ middleware with GUI in C Pin
Richard MacCutchan6-Aug-12 20:59
mveRichard MacCutchan6-Aug-12 20:59 
GeneralRe: C++ middleware with GUI in C Pin
Member 83997696-Aug-12 21:58
Member 83997696-Aug-12 21:58 
GeneralRe: C++ middleware with GUI in C Pin
Richard MacCutchan6-Aug-12 22:46
mveRichard MacCutchan6-Aug-12 22:46 
GeneralRe: C++ middleware with GUI in C Pin
JohnAspras6-Aug-12 21:21
JohnAspras6-Aug-12 21:21 
GeneralRe: C++ middleware with GUI in C Pin
Software_Developer6-Aug-12 22:42
Software_Developer6-Aug-12 22:42 
AnswerRe: C++ middleware with GUI in C Pin
pasztorpisti7-Aug-12 11:53
pasztorpisti7-Aug-12 11:53 
GeneralRe: C++ middleware with GUI in C Pin
Member 83997697-Aug-12 19:18
Member 83997697-Aug-12 19:18 
GeneralRe: C++ middleware with GUI in C Pin
pasztorpisti7-Aug-12 21:13
pasztorpisti7-Aug-12 21:13 
Of course everything has a cost, but does an extra function call count that much in a GUI? The more intensive parts (gui update, draw, ...) are still doing the work in the C layer. What you do through the C++ layer is basically the setup of the gui, and receiving events. These don't happen often. I always say that first keep the project clean and easy to maintain by keeping software design nice and clean, this can not be accomplished without object oriented design in a huge codebase (lets say few hundred thousads LOC). After this if you have performance issues lets start profiling and spot out the most critical parts and start fixing those until you get reasonably good performance. Optimization sometimes results in hard to understand code, if you write the whole code focusing on optimization then your whole code becomes a mess, and often the result is bad performance!!! surprise!!! The 2 most common reasons of performance issues are: algorhitmic problems, hardware related issues (often cache misses). The latter can be caused by a lot of other things: order of execution of subsystems, bad multithreading, ...
Of course if you have a very low end hardware you might want to save every piece of cycle, but even in that case I would consider whether it worth sacrificing good software design for a small performance impact... Not to mention that some good compilers can optimize out (inline) such small wrapper function calls (link time code generation in VC++).
The long and short of it is: make smart design decisions and dont overoptimize at the beginning if you dont have a good reason to do so. Performance problems come last usually from unexpected spots of your codebase.
GeneralNeed help for a Ray Cast Function Pin
SD1016-Aug-12 8:15
SD1016-Aug-12 8:15 
GeneralRe: Need help for a Ray Cast Function Pin
Wes Aday6-Aug-12 8:20
professionalWes Aday6-Aug-12 8:20 
GeneralRe: Need help for a Ray Cast Function Pin
Software_Developer6-Aug-12 9:02
Software_Developer6-Aug-12 9:02 
Questionvectors Pin
Xarzu6-Aug-12 7:10
Xarzu6-Aug-12 7:10 
GeneralRe: vectors Pin
Software_Developer6-Aug-12 7:34
Software_Developer6-Aug-12 7:34 
AnswerRe: vectors Pin
Albert Holguin6-Aug-12 7:38
professionalAlbert Holguin6-Aug-12 7:38 
QuestionI'm doing a file download client,use http or ftp Pin
jiang1988jian5-Aug-12 23:34
jiang1988jian5-Aug-12 23:34 
GeneralRe: I'm doing a file download client,use http or ftp Pin
pasztorpisti6-Aug-12 3:29
pasztorpisti6-Aug-12 3:29 
GeneralRe: I'm doing a file download client,use http or ftp Pin
jiang1988jian12-Aug-12 15:07
jiang1988jian12-Aug-12 15:07 
GeneralRe: I'm doing a file download client,use http or ftp Pin
pasztorpisti12-Aug-12 19:46
pasztorpisti12-Aug-12 19:46 
AnswerRe: I'm doing a file download client,use http or ftp Pin
Software_Developer6-Aug-12 6:06
Software_Developer6-Aug-12 6:06 
GeneralRe: I'm doing a file download client,use http or ftp Pin
pasztorpisti6-Aug-12 6:38
pasztorpisti6-Aug-12 6:38 
GeneralRe: I'm doing a file download client,use http or ftp Pin
pasztorpisti6-Aug-12 6:43
pasztorpisti6-Aug-12 6:43 
QuestionHow to retain the state of check box in a dialog box in MFC.? Pin
mbatra315-Aug-12 21:20
mbatra315-Aug-12 21:20 
AnswerRe: How to retain the state of check box in a dialog box in MFC.? Pin
«_Superman_»5-Aug-12 23:00
professional«_Superman_»5-Aug-12 23:00 
GeneralRe: How to retain the state of check box in a dialog box in MFC.? Pin
mbatra316-Aug-12 2:21
mbatra316-Aug-12 2:21 
Generalget the txt of wordArt with VBA (C++ code) Pin
BCN-1635-Aug-12 20:21
BCN-1635-Aug-12 20:21 

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.