Click here to Skip to main content
15,924,367 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAccessing the CFormview controls Pin
aparajita4-Jun-04 20:57
aparajita4-Jun-04 20:57 
GeneralRe: Accessing the CFormview controls Pin
Johan Rosengren5-Jun-04 21:52
Johan Rosengren5-Jun-04 21:52 
QuestionRe: Accessing the CFormview controls Pin
fermisk30-Mar-09 22:12
fermisk30-Mar-09 22:12 
Generalmake image in one view visible based on input from another view Pin
elephantstar4-Jun-04 20:14
elephantstar4-Jun-04 20:14 
Questionbest way to allocate memory? Pin
nm_1144-Jun-04 19:48
nm_1144-Jun-04 19:48 
AnswerRe: best way to allocate memory? Pin
Johnny ²4-Jun-04 21:21
Johnny ²4-Jun-04 21:21 
AnswerRe: best way to allocate memory? Pin
Gary R. Wheeler5-Jun-04 3:25
Gary R. Wheeler5-Jun-04 3:25 
AnswerRe: best way to allocate memory? Pin
Paul Ranson5-Jun-04 11:27
Paul Ranson5-Jun-04 11:27 
With the MS C/C++ library running on W2K etc then I think you'll find that all those end up at the API 'HeapAlloc'. So if you're really after most efficiency then consider going direct.

In general though 'new'/'delete' for C++. And create your own allocators for special cases. For instance if you're allocating large numbers of small constant sized objects then a specialised allocator based on a number of larger allocations from the system is worth looking at.

As in all optimisation the big win is to get the high level aspects of the program efficient before micro optimising. Say you make all your allocations run in 95% of the time, and I tweak my app to do half the number of allocations. Who's won? Who's kept their app maintainable and simple? Etc etc.

Paul
QuestionHow can i Select item from CListCtrl by Mouse selection Pin
Zeeshan Bilal4-Jun-04 19:36
Zeeshan Bilal4-Jun-04 19:36 
AnswerRe: How can i Select item from CListCtrl by Mouse selection Pin
Ravi Bhavnani4-Jun-04 20:33
professionalRavi Bhavnani4-Jun-04 20:33 
QuestionHow can get embedded objects from a powerpoint slide and get its type? Pin
Fasial4-Jun-04 18:57
Fasial4-Jun-04 18:57 
GeneralTab Control Pin
Archer2824-Jun-04 18:19
Archer2824-Jun-04 18:19 
GeneralRe: Tab Control Pin
Ravi Bhavnani4-Jun-04 20:35
professionalRavi Bhavnani4-Jun-04 20:35 
GeneralRe: Tab Control Pin
Archer2825-Jun-04 8:29
Archer2825-Jun-04 8:29 
GeneralRe: Tab Control Pin
Joel Lucsy5-Jun-04 10:19
Joel Lucsy5-Jun-04 10:19 
GeneralRe: Tab Control Pin
Ravi Bhavnani5-Jun-04 10:30
professionalRavi Bhavnani5-Jun-04 10:30 
GeneralInsert Item in Listcontrol/listview using thread. Pin
Sumit Kapoor4-Jun-04 18:14
Sumit Kapoor4-Jun-04 18:14 
GeneralRe: Insert Item in Listcontrol/listview using thread. Pin
valikac4-Jun-04 18:20
valikac4-Jun-04 18:20 
GeneralRe: Insert Item in Listcontrol/listview using thread. Pin
Billar5-Jun-04 19:35
Billar5-Jun-04 19:35 
Generalchang status bar color Pin
woyaojinqu4-Jun-04 15:49
woyaojinqu4-Jun-04 15:49 
GeneralEnumerated ActiveX Properties Pin
jcsston4-Jun-04 15:13
jcsston4-Jun-04 15:13 
GeneralQueryServiceConfig Error Pin
Blake Miller4-Jun-04 14:29
Blake Miller4-Jun-04 14:29 
GeneralPrinting on a laser printer Pin
Eversman4-Jun-04 14:18
Eversman4-Jun-04 14:18 
GeneralRe: Printing on a laser printer Pin
Johan Rosengren5-Jun-04 21:56
Johan Rosengren5-Jun-04 21:56 
GeneralError LNK 2005 Pin
dw857454-Jun-04 13:01
dw857454-Jun-04 13:01 

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.