Click here to Skip to main content
15,900,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get a Program to show in SysTray instead of on the Running App Bar. Pin
sashoalm6-Sep-08 14:43
sashoalm6-Sep-08 14:43 
GeneralRe: How to get a Program to show in SysTray instead of on the Running App Bar. Pin
Bram van Kampen6-Sep-08 15:21
Bram van Kampen6-Sep-08 15:21 
GeneralRe: How to get a Program to show in SysTray instead of on the Running App Bar. Pin
sashoalm8-Sep-08 4:29
sashoalm8-Sep-08 4:29 
AnswerRe: How to get a Program to show in SysTray instead of on the Running App Bar. Pin
tanvon malik6-Sep-08 21:29
tanvon malik6-Sep-08 21:29 
Questionregistry DWORD horror! Pin
justhere196-Sep-08 11:28
justhere196-Sep-08 11:28 
AnswerRe: registry DWORD horror! Pin
Bram van Kampen6-Sep-08 13:11
Bram van Kampen6-Sep-08 13:11 
AnswerRe: registry DWORD horror! Pin
Bram van Kampen6-Sep-08 17:36
Bram van Kampen6-Sep-08 17:36 
AnswerRe: registry DWORD horror! Pin
tanvon malik6-Sep-08 21:32
tanvon malik6-Sep-08 21:32 
AnswerRe: registry DWORD horror! Pin
David Crow8-Sep-08 4:05
David Crow8-Sep-08 4:05 
QuestionClass with variable length data Pin
Trollslayer6-Sep-08 10:49
mentorTrollslayer6-Sep-08 10:49 
AnswerRe: Class with variable length data Pin
Perspx6-Sep-08 10:55
Perspx6-Sep-08 10:55 
AnswerRe: Class with variable length data Pin
Bram van Kampen6-Sep-08 13:44
Bram van Kampen6-Sep-08 13:44 
Answer[Solved] Re: Class with variable length data Pin
Trollslayer7-Sep-08 0:01
mentorTrollslayer7-Sep-08 0:01 
GeneralRe: [Solved] Re: Class with variable length data Pin
David Crow8-Sep-08 4:10
David Crow8-Sep-08 4:10 
QuestionRe: Class with variable length data Pin
David Crow8-Sep-08 4:09
David Crow8-Sep-08 4:09 
QuestionHow to define interface that it is strong, safe and ... Pin
york5286-Sep-08 9:58
york5286-Sep-08 9:58 
AnswerRe: How to define interface that it is strong, safe and ... Pin
liquid_6-Sep-08 10:28
liquid_6-Sep-08 10:28 
AnswerRe: How to define interface that it is strong, safe and ... Pin
Perspx6-Sep-08 10:28
Perspx6-Sep-08 10:28 
QuestionHow does export cookies functionality of IE is working with vc++? Pin
krishnakumartm6-Sep-08 8:12
krishnakumartm6-Sep-08 8:12 
Questionmy c++ application cannot allocate more than 400MB with new[] Pin
ybenaabud6-Sep-08 5:46
ybenaabud6-Sep-08 5:46 
GeneralRe: my c++ application cannot allocate more than 400MB with new[] Pin
Perspx6-Sep-08 6:41
Perspx6-Sep-08 6:41 
AnswerRe: my c++ application cannot allocate more than 400MB with new[] Pin
Bram van Kampen6-Sep-08 14:17
Bram van Kampen6-Sep-08 14:17 
Do you realy need all this data in memory, all at the same time?

Things like arrays of data are nice to work with, but, if it becomes unreasonably large, (and I would call 400 MB too large to work with), you employ a different approach. You open the File, and read small sections from which you work out where to go next,and so on.

Why things do not work in your case is a different matter, and has most likely to do with where the OS puts things in the LOGICAL Address Space.
For Instance, the area from 2GB to 4GB in your logical address space is reserved by the system. You would not get memory allocated there even if you had 16 GB of memory.

Admittedly, Microsoft does not encourage this approach, their User MFC Document Model was until recently that a Document is something like a Word Document or a Spread Sheet which is Loaded, Modified and Saved each time in it's entirety. That is not a very useful model for large amounts of Data.(You cannot load say a 64 kb Block out of the middle of a CDocument).

Where amounts of Data became large, I devised my own DB Structure, and never read entire files, just the sections I Need. I also found it useful to create and store Hash Tables to speed up searching.

Hope this is Helpfull, Smile | :)

Bram van Kampen

GeneralRe: my c++ application cannot allocate more than 400MB with new[] Pin
ybenaabud6-Sep-08 16:30
ybenaabud6-Sep-08 16:30 
GeneralRe: my c++ application cannot allocate more than 400MB with new[] Pin
Bram van Kampen6-Sep-08 18:12
Bram van Kampen6-Sep-08 18:12 
AnswerRe: my c++ application cannot allocate more than 400MB with new[] Pin
ybenaabud7-Sep-08 3:15
ybenaabud7-Sep-08 3:15 

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.