Click here to Skip to main content
15,890,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Conceptual Question Pin
BambooMoon18-Aug-06 6:10
BambooMoon18-Aug-06 6:10 
AnswerRe: Conceptual Question Pin
flippydeflippydebop21-Aug-06 12:12
flippydeflippydebop21-Aug-06 12:12 
QuestionWhy do some people use HeapAlloc instead of malloc? Pin
Chintoo72318-Aug-06 3:48
Chintoo72318-Aug-06 3:48 
AnswerRe: Why do some people use HeapAlloc instead of malloc? Pin
bob1697218-Aug-06 4:25
bob1697218-Aug-06 4:25 
AnswerRe: Why do some people use HeapAlloc instead of malloc? Pin
Andy Moore18-Aug-06 7:02
Andy Moore18-Aug-06 7:02 
GeneralRe: Why do some people use HeapAlloc instead of malloc? Pin
Chintoo72318-Aug-06 7:18
Chintoo72318-Aug-06 7:18 
GeneralRe: Why do some people use HeapAlloc instead of malloc? Pin
Andy Moore18-Aug-06 7:19
Andy Moore18-Aug-06 7:19 
AnswerRe: Why do some people use HeapAlloc instead of malloc? Pin
cmk18-Aug-06 11:31
cmk18-Aug-06 11:31 
Every process creates a default process heap.
This is the heap used by malloc/new/...

Aside from using the process heap, malloc/new/... (can) add other optimization features such as lookaside lists, small-block heaps, ...

HeapAlloc is the low level way to alloc a block of memory on a heap.

Some people will create a number of heaps within a program, each designed to hold a specific type of data or a specific group of data. This can help reduce heap fragmentation and speed up parts of some applications.

I use separate heaps for different types of data (e.g. all string buffers in one heap, all blobs in another, ...).
I use separate heaps for different groups of data (e.g. all database column data in one heap, all network packets in another, ...).

This just touches on the subject.
In the end it provides the developer with just another tool.


...cmk

Save the whales - collect the whole set

QuestionCreating a Crystal report using a predifined template with vc++ 6.0 Pin
SabseJugs18-Aug-06 3:38
SabseJugs18-Aug-06 3:38 
Questionproblem with refresh button!! Pin
vijay_aroli18-Aug-06 3:34
vijay_aroli18-Aug-06 3:34 
AnswerRe: problem with refresh button!! Pin
Rage18-Aug-06 3:39
professionalRage18-Aug-06 3:39 
QuestionRe: problem with refresh button!! Pin
vijay_aroli18-Aug-06 5:02
vijay_aroli18-Aug-06 5:02 
QuestionRe: problem with refresh button!! Pin
David Crow18-Aug-06 6:33
David Crow18-Aug-06 6:33 
NewsRe: problem with refresh button!! Pin
vijay_aroli18-Aug-06 21:19
vijay_aroli18-Aug-06 21:19 
QuestionWord automation Pin
great_tommy18-Aug-06 3:31
great_tommy18-Aug-06 3:31 
AnswerRe: Word automation Pin
Rage18-Aug-06 3:38
professionalRage18-Aug-06 3:38 
GeneralRe: Word automation [modified] Pin
great_tommy18-Aug-06 3:50
great_tommy18-Aug-06 3:50 
GeneralRe: Word automation Pin
David Crow18-Aug-06 6:36
David Crow18-Aug-06 6:36 
QuestionHow Pin
nhoc_conxauxi18-Aug-06 2:58
nhoc_conxauxi18-Aug-06 2:58 
AnswerRe: How Pin
Hamid_RT18-Aug-06 19:35
Hamid_RT18-Aug-06 19:35 
QuestionHow to cut file Pin
nhoc_conxauxi18-Aug-06 2:49
nhoc_conxauxi18-Aug-06 2:49 
Questionhow can i read excel sheet using visual c++ MFC Pin
kamlesh987318-Aug-06 2:18
kamlesh987318-Aug-06 2:18 
AnswerRe: how can i read excel sheet using visual c++ MFC Pin
_AnsHUMAN_ 18-Aug-06 2:43
_AnsHUMAN_ 18-Aug-06 2:43 
QuestionRe: how can i read excel sheet using visual c++ MFC Pin
David Crow18-Aug-06 3:02
David Crow18-Aug-06 3:02 
AnswerRe: how can i read excel sheet using visual c++ MFC Pin
Hamid_RT18-Aug-06 3:04
Hamid_RT18-Aug-06 3:04 

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.