Click here to Skip to main content
15,881,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhich event generated on SetItemtext in CLitsCtrl? Pin
Le@rner8-Jul-13 19:45
Le@rner8-Jul-13 19:45 
AnswerRe: Which event generated on SetItemtext in CLitsCtrl? Pin
«_Superman_»8-Jul-13 20:09
professional«_Superman_»8-Jul-13 20:09 
GeneralRe: Which event generated on SetItemtext in CLitsCtrl? Pin
Le@rner8-Jul-13 20:15
Le@rner8-Jul-13 20:15 
GeneralRe: Which event generated on SetItemtext in CLitsCtrl? Pin
«_Superman_»8-Jul-13 20:28
professional«_Superman_»8-Jul-13 20:28 
GeneralRe: Which event generated on SetItemtext in CLitsCtrl? Pin
Freak308-Jul-13 21:39
Freak308-Jul-13 21:39 
QuestionHow to write a Un-fixed size memory pool ? Pin
yu-jian8-Jul-13 4:42
yu-jian8-Jul-13 4:42 
AnswerRe: How to write a Un-fixed size memory pool ? Pin
jschell8-Jul-13 8:35
jschell8-Jul-13 8:35 
AnswerRe: How to write a Un-fixed size memory pool ? Pin
Stefan_Lang15-Jul-13 23:14
Stefan_Lang15-Jul-13 23:14 
The task you're describing is exactly what the system memory manager is built for! It can allocate objects of any size, and will organize your memory in such a way that it can handle millions of calls without serious degradation.

Memory Pools take advantage of the fact that most of the time when you have lots of allocations, you always allocate objects of the same type and size. Based on that assumption, you can improve the performance of the allocation (and deallocation) process, and reduce memory fragmentation.

If you can't make such assumptions, then you'd need to do exactly the same thing the system memory manager does. In other words: just use new and delete.

Is there a specific reason why you think you need a pool? Maybe there are better ways to improve yur program.
GeneralRe: How to write a Un-fixed size memory pool ? Pin
yu-jian16-Jul-13 5:41
yu-jian16-Jul-13 5:41 
GeneralRe: How to write a Un-fixed size memory pool ? Pin
Stefan_Lang16-Jul-13 20:48
Stefan_Lang16-Jul-13 20:48 
GeneralRe: How to write a Un-fixed size memory pool ? Pin
yu-jian17-Jul-13 4:47
yu-jian17-Jul-13 4:47 
GeneralRe: How to write a Un-fixed size memory pool ? Pin
Stefan_Lang17-Jul-13 5:12
Stefan_Lang17-Jul-13 5:12 
Questionwin32 drawing shape and StrokeAndFillPath(hDC) please help Pin
appollosputnik8-Jul-13 3:54
appollosputnik8-Jul-13 3:54 
AnswerRe: win32 drawing shape and StrokeAndFillPath(hDC) please help Pin
Richard MacCutchan8-Jul-13 5:42
mveRichard MacCutchan8-Jul-13 5:42 
Questionhow to disable "Use hardware acceleration when available" on chrome Pin
Thong LeTrung7-Jul-13 22:39
Thong LeTrung7-Jul-13 22:39 
AnswerRe: how to disable "Use hardware acceleration when available" on chrome Pin
«_Superman_»7-Jul-13 23:32
professional«_Superman_»7-Jul-13 23:32 
GeneralRe: how to disable "Use hardware acceleration when available" on chrome Pin
Thong LeTrung9-Jul-13 22:23
Thong LeTrung9-Jul-13 22:23 
QuestionBOOST C++ Library for MFC application Pin
pk jain7-Jul-13 21:47
pk jain7-Jul-13 21:47 
AnswerRe: BOOST C++ Library for MFC application Pin
«_Superman_»7-Jul-13 22:21
professional«_Superman_»7-Jul-13 22:21 
GeneralRe: BOOST C++ Library for MFC application Pin
pk jain7-Jul-13 23:03
pk jain7-Jul-13 23:03 
GeneralRe: BOOST C++ Library for MFC application Pin
«_Superman_»7-Jul-13 23:08
professional«_Superman_»7-Jul-13 23:08 
GeneralRe: BOOST C++ Library for MFC application Pin
pk jain7-Jul-13 23:38
pk jain7-Jul-13 23:38 
Questionsimple name change of tree control does not work ?? Pin
Member 25844747-Jul-13 18:36
Member 25844747-Jul-13 18:36 
AnswerRe: simple name change of tree control does not work ?? Pin
Jonathan Davies7-Jul-13 22:44
Jonathan Davies7-Jul-13 22:44 
AnswerRe: simple name change of tree control does not work ?? Pin
Richard MacCutchan8-Jul-13 5:45
mveRichard MacCutchan8-Jul-13 5:45 

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.