Click here to Skip to main content
15,566,522 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhich event generated on SetItemtext in CLitsCtrl? Pin
Le@rner8-Jul-13 20:45
Le@rner8-Jul-13 20:45 
AnswerRe: Which event generated on SetItemtext in CLitsCtrl? Pin
«_Superman_»8-Jul-13 21:09
professional«_Superman_»8-Jul-13 21:09 
GeneralRe: Which event generated on SetItemtext in CLitsCtrl? Pin
Le@rner8-Jul-13 21:15
Le@rner8-Jul-13 21:15 
GeneralRe: Which event generated on SetItemtext in CLitsCtrl? Pin
«_Superman_»8-Jul-13 21:28
professional«_Superman_»8-Jul-13 21:28 
GeneralRe: Which event generated on SetItemtext in CLitsCtrl? Pin
Freak308-Jul-13 22:39
Freak308-Jul-13 22:39 
QuestionHow to write a Un-fixed size memory pool ? Pin
yu-jian8-Jul-13 5:42
yu-jian8-Jul-13 5:42 
AnswerRe: How to write a Un-fixed size memory pool ? Pin
jschell8-Jul-13 9:35
jschell8-Jul-13 9:35 
AnswerRe: How to write a Un-fixed size memory pool ? Pin
Stefan_Lang16-Jul-13 0:14
mveStefan_Lang16-Jul-13 0: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 6:41
yu-jian16-Jul-13 6:41 
GeneralRe: How to write a Un-fixed size memory pool ? Pin
Stefan_Lang16-Jul-13 21:48
mveStefan_Lang16-Jul-13 21:48 
GeneralRe: How to write a Un-fixed size memory pool ? Pin
yu-jian17-Jul-13 5:47
yu-jian17-Jul-13 5:47 
GeneralRe: How to write a Un-fixed size memory pool ? Pin
Stefan_Lang17-Jul-13 6:12
mveStefan_Lang17-Jul-13 6:12 
Questionwin32 drawing shape and StrokeAndFillPath(hDC) please help Pin
appollosputnik8-Jul-13 4:54
appollosputnik8-Jul-13 4:54 
AnswerRe: win32 drawing shape and StrokeAndFillPath(hDC) please help Pin
Richard MacCutchan8-Jul-13 6:42
mveRichard MacCutchan8-Jul-13 6:42 
Questionhow to disable "Use hardware acceleration when available" on chrome Pin
Thong LeTrung7-Jul-13 23:39
Thong LeTrung7-Jul-13 23:39 
AnswerRe: how to disable "Use hardware acceleration when available" on chrome Pin
«_Superman_»8-Jul-13 0:32
professional«_Superman_»8-Jul-13 0:32 
GeneralRe: how to disable "Use hardware acceleration when available" on chrome Pin
Thong LeTrung9-Jul-13 23:23
Thong LeTrung9-Jul-13 23:23 
QuestionBOOST C++ Library for MFC application Pin
pk jain7-Jul-13 22:47
pk jain7-Jul-13 22:47 
AnswerRe: BOOST C++ Library for MFC application Pin
«_Superman_»7-Jul-13 23:21
professional«_Superman_»7-Jul-13 23:21 
GeneralRe: BOOST C++ Library for MFC application Pin
pk jain8-Jul-13 0:03
pk jain8-Jul-13 0:03 
GeneralRe: BOOST C++ Library for MFC application Pin
«_Superman_»8-Jul-13 0:08
professional«_Superman_»8-Jul-13 0:08 
GeneralRe: BOOST C++ Library for MFC application Pin
pk jain8-Jul-13 0:38
pk jain8-Jul-13 0:38 
Questionsimple name change of tree control does not work ?? Pin
Member 25844747-Jul-13 19:36
Member 25844747-Jul-13 19:36 
AnswerRe: simple name change of tree control does not work ?? Pin
Jonathan Davies7-Jul-13 23:44
Jonathan Davies7-Jul-13 23:44 
AnswerRe: simple name change of tree control does not work ?? Pin
Richard MacCutchan8-Jul-13 6:45
mveRichard MacCutchan8-Jul-13 6: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.