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

C / C++ / MFC

 
AnswerRe: about CListCtrl Pin
CPallini19-May-11 2:23
mveCPallini19-May-11 2:23 
QuestionMFC Program and Very Large Text Files Pin
Andy20219-May-11 0:37
Andy20219-May-11 0:37 
AnswerRe: MFC Program and Very Large Text Files Pin
Maximilien19-May-11 1:05
Maximilien19-May-11 1:05 
GeneralRe: MFC Program and Very Large Text Files [modified] Pin
federico.strati19-May-11 1:26
federico.strati19-May-11 1:26 
GeneralRe: MFC Program and Very Large Text Files Pin
Andy20219-May-11 22:04
Andy20219-May-11 22:04 
GeneralRe: MFC Program and Very Large Text Files Pin
federico.strati20-May-11 23:25
federico.strati20-May-11 23:25 
GeneralRe: MFC Program and Very Large Text Files Pin
Andy20225-May-11 21:33
Andy20225-May-11 21:33 
GeneralRe: MFC Program and Very Large Text Files Pin
federico.strati26-May-11 2:14
federico.strati26-May-11 2:14 
Hi,

the allocation granularity size, if you look at the code, is system dependent:

SYSTEM_INFO sinf;
GetSystemInfo(&sinf);

[... snipped ...].

  // Determine the number of bytes to be mapped in this view
  DWORD dwBytesInBlock = sinf.dwAllocationGranularity;


I don't know the values for recent Windows OS's, I cited 64Kb just to say a size,
you may just get them from the API (GetSystemInfo).

As far as what would be the best value, I would say that you should map in multiples of
such allocation size and other considerations (as available memory for the system and/or the single
process) come into play.

You may have to experiment a bit to find the best for your requirements.

Cheers

Federico
AnswerRe: MFC Program and Very Large Text Files Pin
Chandrasekharan P19-May-11 1:22
Chandrasekharan P19-May-11 1:22 
AnswerRe: MFC Program and Very Large Text Files Pin
jschell19-May-11 8:21
jschell19-May-11 8:21 
GeneralRe: MFC Program and Very Large Text Files Pin
Andy20219-May-11 22:10
Andy20219-May-11 22:10 
GeneralRe: MFC Program and Very Large Text Files Pin
jschell20-May-11 10:13
jschell20-May-11 10:13 
QuestionEmbedding Excel in a dialog Pin
efraimyy18-May-11 22:49
efraimyy18-May-11 22:49 
AnswerRe: Embedding Excel in a dialog Pin
Chandrasekharan P19-May-11 1:35
Chandrasekharan P19-May-11 1:35 
GeneralRe: Embedding Excel in a dialog Pin
efraimyy19-May-11 2:58
efraimyy19-May-11 2:58 
GeneralRe: Embedding Excel in a dialog Pin
efraimyy19-May-11 3:00
efraimyy19-May-11 3:00 
GeneralRe: Embedding Excel in a dialog Pin
Chandrasekharan P19-May-11 22:04
Chandrasekharan P19-May-11 22:04 
GeneralRe: Embedding Excel in a dialog Pin
efraimyy21-May-11 21:40
efraimyy21-May-11 21:40 
GeneralRe: Embedding Excel in a dialog Pin
Chandrasekharan P22-May-11 18:42
Chandrasekharan P22-May-11 18:42 
QuestionAdding Scrollbar to a Dialog in MFC Pin
pix_programmer18-May-11 20:52
pix_programmer18-May-11 20:52 
AnswerRe: Adding Scrollbar to a Dialog in MFC Pin
Chandrasekharan P18-May-11 22:04
Chandrasekharan P18-May-11 22:04 
GeneralRe: Adding Scrollbar to a Dialog in MFC Pin
pix_programmer18-May-11 22:12
pix_programmer18-May-11 22:12 
GeneralRe: Adding Scrollbar to a Dialog in MFC Pin
Chandrasekharan P18-May-11 22:26
Chandrasekharan P18-May-11 22:26 
Questionvoice chat in client/server Pin
includeh1018-May-11 12:18
includeh1018-May-11 12:18 
AnswerRe: voice chat in client/server Pin
Code-o-mat19-May-11 0:24
Code-o-mat19-May-11 0:24 

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.