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

C / C++ / MFC

 
GeneralRe: Direct creation of CWnd Object Pin
leon de boer27-Jun-17 19:49
leon de boer27-Jun-17 19:49 
GeneralRe: Direct creation of CWnd Object Pin
al250029-Jun-17 5:23
al250029-Jun-17 5:23 
GeneralRe: Direct creation of CWnd Object Pin
leon de boer29-Jun-17 6:25
leon de boer29-Jun-17 6:25 
QuestionHow to proceed and execute LDPC decoding using Data Structure in C Pin
Member 1326117526-Jun-17 21:15
Member 1326117526-Jun-17 21:15 
AnswerRe: How to proceed and execute LDPC decoding using Data Structure in C Pin
Richard MacCutchan26-Jun-17 22:59
mveRichard MacCutchan26-Jun-17 22:59 
AnswerRe: How to proceed and execute LDPC decoding using Data Structure in C Pin
leon de boer27-Jun-17 5:36
leon de boer27-Jun-17 5:36 
GeneralRe: How to proceed and execute LDPC decoding using Data Structure in C Pin
Member 1326117527-Jun-17 19:19
Member 1326117527-Jun-17 19:19 
QuestionDisecting a PE File, Revisited Pin
Bram van Kampen26-Jun-17 14:56
Bram van Kampen26-Jun-17 14:56 
Hi,

First of all genuine thanks to all that contributed to my previous queery. It was really helpful, and moved things along.

I wrote a method: MkRvaPrt() that takes an rva, and maps it successfully to the file location, rather than to the memory location where the object would be after using LoadLibrary();

Sections in a PE File are used where a block of binary data is mapped to a file location other than the offset in the file.

What the MkRvaPtr() function does is, it checks whether the virtual address is within the ranges of any of the Section Headers, (irrespective of name), and, if so calculates the adjustment, and returns a pointer into the file. If it does not point into a section, it returns the rva offset into the File.

This all works smooth, but sets the stage to several questions.:-

Sometimes, the rva found, already points at the required data, at other occasions, it has to be converted with MkRvaPtr.
e.g.:

I need to use MkRvaPtr to get the name of each Import Module, but the list of "PtrsToImportNames" needs no such translation.
Does this table consist of relative offsets to itself? If so, How was I to know!

Kind Regards,Smile | :)
Bram van Kampen


modified 26-Jun-17 21:10pm.

Questionhow to use memset to fill a char array with space key? Pin
focusdoit25-Jun-17 3:01
focusdoit25-Jun-17 3:01 
AnswerRe: how to use memset to fill a char array with space key? Pin
leon de boer25-Jun-17 3:12
leon de boer25-Jun-17 3:12 
GeneralRe: how to use memset to fill a char array with space key? Pin
focusdoit25-Jun-17 3:53
focusdoit25-Jun-17 3:53 
GeneralRe: how to use memset to fill a char array with space key? Pin
harold aptroot25-Jun-17 4:03
harold aptroot25-Jun-17 4:03 
GeneralRe: how to use memset to fill a char array with space key? Pin
focusdoit25-Jun-17 4:11
focusdoit25-Jun-17 4:11 
GeneralRe: how to use memset to fill a char array with space key? Pin
harold aptroot25-Jun-17 4:23
harold aptroot25-Jun-17 4:23 
GeneralRe: how to use memset to fill a char array with space key? Pin
Rick York26-Jun-17 7:50
mveRick York26-Jun-17 7:50 
GeneralRe: how to use memset to fill a char array with space key? Pin
leon de boer26-Jun-17 8:05
leon de boer26-Jun-17 8:05 
QuestionC programming Determine Students grade Pin
hoangtrungl22-Jun-17 22:47
hoangtrungl22-Jun-17 22:47 
AnswerRe: C programming Determine Students grade Pin
OriginalGriff22-Jun-17 22:54
mveOriginalGriff22-Jun-17 22:54 
AnswerRe: C programming Determine Students grade Pin
Jochen Arndt22-Jun-17 23:12
professionalJochen Arndt22-Jun-17 23:12 
QuestionRe: C programming Determine Students grade Pin
David Crow23-Jun-17 4:05
David Crow23-Jun-17 4:05 
AnswerRe: C programming Determine Students grade Pin
Bram van Kampen28-Jun-17 12:35
Bram van Kampen28-Jun-17 12:35 
QuestionHow to solve this compiler error. Pin
pankajkumar21-Jun-17 2:42
pankajkumar21-Jun-17 2:42 
NewsRe: How to solve this compiler error. Pin
Jochen Arndt21-Jun-17 3:23
professionalJochen Arndt21-Jun-17 3:23 
GeneralRe: How to solve this compiler error. Pin
pankajkumar23-Jun-17 2:19
pankajkumar23-Jun-17 2:19 
GeneralRe: How to solve this compiler error. Pin
Jochen Arndt23-Jun-17 2:41
professionalJochen Arndt23-Jun-17 2:41 

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.