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

C / C++ / MFC

 
GeneralRe: MDI frame "Window" menu / submenu dynamics - where to start? Pin
Vaclav_9-Mar-14 13:20
Vaclav_9-Mar-14 13:20 
GeneralRe: MDI frame "Window" menu / submenu dynamics - where to start? Pin
Richard MacCutchan9-Mar-14 22:16
mveRichard MacCutchan9-Mar-14 22:16 
GeneralRe: MDI frame "Window" menu / submenu dynamics - where to start? Pin
Vaclav_10-Mar-14 1:35
Vaclav_10-Mar-14 1:35 
GeneralRe: MDI frame "Window" menu / submenu dynamics - where to start? Pin
Richard MacCutchan10-Mar-14 1:53
mveRichard MacCutchan10-Mar-14 1:53 
QuestionCMap efficiency Pin
econy7-Mar-14 5:20
econy7-Mar-14 5:20 
AnswerRe: CMap efficiency Pin
jeron17-Mar-14 5:48
jeron17-Mar-14 5:48 
QuestionRe: CMap efficiency Pin
CPallini9-Mar-14 4:57
mveCPallini9-Mar-14 4:57 
AnswerRe: CMap efficiency Pin
Stefan_Lang12-Mar-14 1:29
Stefan_Lang12-Mar-14 1:29 
Lookup requires comparing keys, i. e. calling the operator < and maybe operator ==. Since these operators are more efficient for ints than they are for strings, I suspect that CMap is better. However, the rest of the looking-up algorithm that does not involve comparing keys may play a much more significant role on performance overall, so you might not notice a difference.

You should also consider whether there are other operations than looking up which are called often, e. g. insertion, removal, converting keys to different formats, etc.: E. g. if you spend a lot of time reading keys from a text source or writing them as text, then it may be advisable to just stick with string keys rather than converting them back and forth all the time!
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

Point in case: http://www.infoq.com/news/2014/02/apple_gotofail_lessons[^]

QuestionWM_GETTEXT does not returns data from Grid Control of external application Pin
pandit847-Mar-14 4:33
pandit847-Mar-14 4:33 
AnswerRe: WM_GETTEXT does not returns data from Grid Control of external application Pin
Richard MacCutchan7-Mar-14 5:54
mveRichard MacCutchan7-Mar-14 5:54 
QuestionAuto align of toolbar by frame width Pin
akhil_sudheesh6-Mar-14 19:44
akhil_sudheesh6-Mar-14 19:44 
AnswerRe: Auto align of toolbar by frame width Pin
Rage12-Mar-14 22:15
professionalRage12-Mar-14 22:15 
GeneralRe: Auto align of toolbar by frame width Pin
akhil_sudheesh13-Mar-14 19:55
akhil_sudheesh13-Mar-14 19:55 
AnswerRe: Auto align of toolbar by frame width Pin
Rage14-Mar-14 0:07
professionalRage14-Mar-14 0:07 
AnswerRe: Auto align of toolbar by frame width Pin
Rage14-Mar-14 0:15
professionalRage14-Mar-14 0:15 
GeneralRe: Auto align of toolbar by frame width Pin
akhil_sudheesh16-Mar-14 21:29
akhil_sudheesh16-Mar-14 21:29 
Questionstd::shared_ptr causing C4150 warning even if custom deleter is used in Visual C++ 2012 [Solved] Pin
Elerian6-Mar-14 10:17
Elerian6-Mar-14 10:17 
AnswerRe: std::shared_ptr causing C4150 warning even if custom deleter is used in Visual C++ 2012 Pin
«_Superman_»6-Mar-14 14:24
professional«_Superman_»6-Mar-14 14:24 
GeneralRe: std::shared_ptr causing C4150 warning even if custom deleter is used in Visual C++ 2012 Pin
Elerian7-Mar-14 8:10
Elerian7-Mar-14 8:10 
AnswerRe: std::shared_ptr causing C4150 warning even if custom deleter is used in Visual C++ 2012 Pin
Elerian7-Mar-14 8:20
Elerian7-Mar-14 8:20 
QuestionThe destructor of MFC application [Solved] Pin
econy6-Mar-14 7:02
econy6-Mar-14 7:02 
AnswerRe: The destructor of MFC application Pin
David Crow6-Mar-14 7:09
David Crow6-Mar-14 7:09 
GeneralRe: The destructor of MFC application Pin
econy6-Mar-14 8:41
econy6-Mar-14 8:41 
GeneralRe: The destructor of MFC application Pin
jeron16-Mar-14 9:15
jeron16-Mar-14 9:15 
GeneralRe: The destructor of MFC application Pin
econy6-Mar-14 10:14
econy6-Mar-14 10:14 

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.