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

C / C++ / MFC

 
GeneralRe: MS FlexGrid Control Pin
Bill Wilson24-Apr-02 10:28
Bill Wilson24-Apr-02 10:28 
GeneralOpen a menu in a menubar Pin
AmarB24-Apr-02 6:01
AmarB24-Apr-02 6:01 
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 
If you absolutely need to have a contiguous block of memory of 1MB, go ahead and request to malloc a block that big. Chances are there'll be no serious problems, as 1MB is handlable by PCs these days, and moreover the virtual paging mechanism will help liven things up.
Apart from this, maybe you can get by with some block of memory that grows on demand, so that only gets to these huge sizes when actually required. If so, have a look at std::vector, which automates this behavior for you.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
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 
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 

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.