Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to create a vector? Pin
Jijo.Raj17-Nov-09 1:30
Jijo.Raj17-Nov-09 1:30 
GeneralRe: How to create a vector? Pin
deadlyabbas17-Nov-09 3:50
deadlyabbas17-Nov-09 3:50 
GeneralRe: How to create a vector? Pin
«_Superman_»17-Nov-09 7:17
professional«_Superman_»17-Nov-09 7:17 
Questiondde problem Pin
trioum17-Nov-09 0:24
trioum17-Nov-09 0:24 
QuestionFind out Build Configuration from exe Pin
Maya_16-Nov-09 23:21
Maya_16-Nov-09 23:21 
AnswerRe: Find out Build Configuration from exe Pin
Randor 17-Nov-09 2:13
professional Randor 17-Nov-09 2:13 
QuestionRe: Find out Build Configuration from exe Pin
David Crow17-Nov-09 3:43
David Crow17-Nov-09 3:43 
AnswerRe: Find out Build Configuration from exe Pin
Randor 17-Nov-09 11:21
professional Randor 17-Nov-09 11:21 
Hi DavidCrow,

The difference is that CreateFileMapping will load the entire executable into virtual memory. Using CreateFile/ReadFile will probably map an executable into the pagefile up to the allocation granularity of the system which is 64K on a 32 bit NT OS depending on which CreateFile flags have been used.

Typically when I iterate through PE sections and read data I use CreateFileMapping for performance reasons. Although for simply checking the IMAGE_FILE_DEBUG_STRIPPED flag a series of ReadFile calls would be sufficient.

At any rate... a code sample is exactly that. It is a code sample.

Best Wishes,
-David Delaune
GeneralRe: Find out Build Configuration from exe Pin
Maya_17-Nov-09 5:22
Maya_17-Nov-09 5:22 
GeneralRe: Find out Build Configuration from exe Pin
Maya_17-Nov-09 16:05
Maya_17-Nov-09 16:05 
GeneralRe: Find out Build Configuration from exe Pin
Randor 17-Nov-09 16:29
professional Randor 17-Nov-09 16:29 
GeneralRe: Find out Build Configuration from exe Pin
Maya_18-Nov-09 2:32
Maya_18-Nov-09 2:32 
Questiondll for middleware Pin
Eka Candra16-Nov-09 20:24
Eka Candra16-Nov-09 20:24 
AnswerRe: dll for middleware Pin
CPallini16-Nov-09 20:41
mveCPallini16-Nov-09 20:41 
GeneralRe: dll for middleware Pin
Eka Candra16-Nov-09 21:03
Eka Candra16-Nov-09 21:03 
QuestionRe: dll for middleware Pin
CPallini16-Nov-09 21:12
mveCPallini16-Nov-09 21:12 
AnswerRe: dll for middleware Pin
Eka Candra16-Nov-09 21:32
Eka Candra16-Nov-09 21:32 
QuestionWin32 to MFC Pin
NaveenHS16-Nov-09 20:02
NaveenHS16-Nov-09 20:02 
AnswerRe: Win32 to MFC Pin
SandipG 16-Nov-09 20:17
SandipG 16-Nov-09 20:17 
AnswerRe: Win32 to MFC Pin
Franck Paquier16-Nov-09 20:20
Franck Paquier16-Nov-09 20:20 
GeneralRe: Win32 to MFC Pin
NaveenHS16-Nov-09 22:32
NaveenHS16-Nov-09 22:32 
QuestionProblem in CRecordset::Open. Pin
Le@rner16-Nov-09 19:58
Le@rner16-Nov-09 19:58 
AnswerRe: Problem in CRecordset::Open. Pin
CPallini16-Nov-09 22:44
mveCPallini16-Nov-09 22:44 
QuestionOpen source my WGI, a GUI lib written with C. Pin
Bruce.Zhao.ZPZ16-Nov-09 19:54
Bruce.Zhao.ZPZ16-Nov-09 19:54 
QuestionRe: Open source my WGI, a GUI lib written with C. Pin
CPallini16-Nov-09 21:01
mveCPallini16-Nov-09 21:01 

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.