Click here to Skip to main content
15,910,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: returning strings from a component Pin
Michael Dunn30-Nov-02 20:35
sitebuilderMichael Dunn30-Nov-02 20:35 
GeneralMore link troubles... Pin
Jamie Hale30-Nov-02 19:46
Jamie Hale30-Nov-02 19:46 
GeneralRe: More link troubles... Pin
Michael Dunn30-Nov-02 20:32
sitebuilderMichael Dunn30-Nov-02 20:32 
GeneralRe: More link troubles... Pin
Jamie Hale2-Dec-02 11:26
Jamie Hale2-Dec-02 11:26 
GeneralRe: More link troubles... Pin
Michael Dunn3-Dec-02 13:14
sitebuilderMichael Dunn3-Dec-02 13:14 
GeneralRich edit control Pin
Rohit  Sinha30-Nov-02 18:30
Rohit  Sinha30-Nov-02 18:30 
GeneralBig chunks of memory. Pin
clintsinger30-Nov-02 18:06
clintsinger30-Nov-02 18:06 
GeneralRe: Big chunks of memory. Pin
Chris Losinger30-Nov-02 18:43
professionalChris Losinger30-Nov-02 18:43 
new and malloc are identical internally. and, they're both fine for the sizes you're talking about. if you start getting into utterly huge images, like 50MB or so, you might want to consider VirtualAlloc and friends.

clintsinger wrote:
Should I allocate individual chunks or one large chunk that will fit them all and just keep pointers to the their positions?

i always alloc them individually, under the assumption that the heap manager can do a better job of allocating and paging memory than i can do it myself.

i write a lot of image processing apps, and i've never had a problem with new/malloc (or LocalAlloc) for images in the 500-1000K range (or even in the 10-20MB range).

-c



There's one easy way to prove the effectiveness of 'letting the market decide' when it comes to environmental protection. It's spelt 'S-U-V'.
--Holgate, from Plastic

QuestionHow to handle image using MFC? Pin
kyoko30-Nov-02 15:58
kyoko30-Nov-02 15:58 
AnswerRe: How to handle image using MFC? Pin
Christian Graus30-Nov-02 16:15
protectorChristian Graus30-Nov-02 16:15 
General181 link errors... Pin
Jamie Hale30-Nov-02 14:40
Jamie Hale30-Nov-02 14:40 
GeneralRe: 181 link errors... Pin
Michael Dunn30-Nov-02 14:58
sitebuilderMichael Dunn30-Nov-02 14:58 
GeneralRe: 181 link errors... Pin
Jamie Hale30-Nov-02 15:49
Jamie Hale30-Nov-02 15:49 
GeneralWinsock Programming Pin
Steven M Hunt30-Nov-02 14:22
Steven M Hunt30-Nov-02 14:22 
GeneralRe: Winsock Programming Pin
valikac30-Nov-02 14:40
valikac30-Nov-02 14:40 
GeneralRe: Winsock Programming Pin
valikac30-Nov-02 15:15
valikac30-Nov-02 15:15 
GeneralRe: Winsock Programming Pin
Steven M Hunt1-Dec-02 14:17
Steven M Hunt1-Dec-02 14:17 
GeneralExtracting attachments from email Pin
AlexMarbus30-Nov-02 13:42
AlexMarbus30-Nov-02 13:42 
GeneralRe: Extracting attachments from email Pin
Ravi Bhavnani30-Nov-02 14:42
professionalRavi Bhavnani30-Nov-02 14:42 
GeneralRe: Extracting attachments from email Pin
AlexMarbus30-Nov-02 14:48
AlexMarbus30-Nov-02 14:48 
GeneralRe: Extracting attachments from email Pin
Rohit  Sinha30-Nov-02 18:45
Rohit  Sinha30-Nov-02 18:45 
GeneralRe: Extracting attachments from email Pin
AlexMarbus6-Dec-02 12:48
AlexMarbus6-Dec-02 12:48 
GeneralMFC program crashes under Win XP Pin
Romik30-Nov-02 12:52
Romik30-Nov-02 12:52 
GeneralRe: MFC program crashes under Win XP Pin
Gary R. Wheeler1-Dec-02 6:27
Gary R. Wheeler1-Dec-02 6:27 

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.