Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Open a menu in a menubar Pin
Nish Nishant24-Apr-02 7:10
sitebuilderNish Nishant24-Apr-02 7:10 
GeneralDate & Time For Different timezones Pin
24-Apr-02 5:53
suss24-Apr-02 5:53 
GeneralRe: Date & Time For Different timezones Pin
lucy24-Apr-02 6:06
lucy24-Apr-02 6:06 
GeneralREPOST: Attributed C++: How can I have a custom enum in idl Pin
Le centriste24-Apr-02 5:19
Le centriste24-Apr-02 5:19 
QuestionBest way to allocate large char arrays with malloc? Pin
Tommy Svensson24-Apr-02 4:12
Tommy Svensson24-Apr-02 4:12 
AnswerRe: Best way to allocate large char arrays with malloc? Pin
Joaquín M López Muñoz24-Apr-02 4:56
Joaquín M López Muñoz24-Apr-02 4:56 
GeneralRe: Best way to allocate large char arrays with malloc? Pin
Albert Pascual24-Apr-02 7:25
sitebuilderAlbert Pascual24-Apr-02 7:25 
AnswerRe: Best way to allocate large char arrays with malloc? Pin
Tim Smith24-Apr-02 5:12
Tim Smith24-Apr-02 5:12 
Malloc will work just fine with one warning.

The only problem I have ever run into with allocating large blocks of memory is that if you allocate/free that block a lot, you run the risk of fragmenting your virtual address space. This can happen if you free that 1MB block and then part of it is used by a smaller allocation. Then when you go and try to allocate 1MB again, the system has to allocate a new 1MB block.

Tim Smith

I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
AnswerRe: Best way to allocate large char arrays with malloc? Pin
Chris Hafey24-Apr-02 16:55
Chris Hafey24-Apr-02 16:55 
GeneralRe: Best way to allocate large char arrays with malloc? Pin
Tommy Svensson24-Apr-02 22:21
Tommy Svensson24-Apr-02 22:21 
GeneralRe: Best way to allocate large char arrays with malloc? Pin
Chris Hafey27-Apr-02 8:44
Chris Hafey27-Apr-02 8:44 
GeneralVC7 MDE SHTML Syntax Coloring Pin
Jason Hooper24-Apr-02 4:06
Jason Hooper24-Apr-02 4:06 
QuestionHow to generate binary tree from math expression? Pin
ivex24-Apr-02 3:34
ivex24-Apr-02 3:34 
AnswerRe: How to generate binary tree from math expression? Pin
Ravi Bhavnani24-Apr-02 3:53
professionalRavi Bhavnani24-Apr-02 3:53 
AnswerRe: How to generate binary tree from math expression? Pin
Tim Smith24-Apr-02 4:12
Tim Smith24-Apr-02 4:12 
QuestionHow to express empty? Pin
Feng Qin24-Apr-02 3:29
Feng Qin24-Apr-02 3:29 
AnswerRe: How to express empty? Pin
Joaquín M López Muñoz24-Apr-02 4:13
Joaquín M López Muñoz24-Apr-02 4:13 
GeneralUsing CProgressCtrl (an idiot asks...) Pin
24-Apr-02 3:24
suss24-Apr-02 3:24 
GeneralRe: Using CProgressCtrl (an idiot asks...) Pin
Joaquín M López Muñoz24-Apr-02 3:31
Joaquín M López Muñoz24-Apr-02 3:31 
GeneralRe: Using CProgressCtrl (an idiot asks...) Pin
24-Apr-02 11:03
suss24-Apr-02 11:03 
GeneralRe: Using CProgressCtrl (an idiot asks...) Pin
Ravi Bhavnani24-Apr-02 3:35
professionalRavi Bhavnani24-Apr-02 3:35 
GeneralRe: Using CProgressCtrl (an idiot asks...) Pin
24-Apr-02 11:00
suss24-Apr-02 11:00 
QuestionDrag'n Drop, between applications, to get HWND ? Pin
Ergo24-Apr-02 3:00
Ergo24-Apr-02 3:00 
AnswerRe: Drag'n Drop, between applications, to get HWND ? Pin
Anders Molin24-Apr-02 4:56
professionalAnders Molin24-Apr-02 4:56 
GeneralRe: Drag'n Drop, between applications, to get HWND ? Pin
24-Apr-02 11:33
suss24-Apr-02 11:33 

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.