Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to fetch values from memory using structure variable name. Pin
shanmugarajaa26-Mar-12 21:24
shanmugarajaa26-Mar-12 21:24 
GeneralRe: How to fetch values from memory using structure variable name. Pin
Albert Holguin27-Mar-12 4:09
professionalAlbert Holguin27-Mar-12 4:09 
QuestionRe: How to fetch values from memory using structure variable name. Pin
CPallini26-Mar-12 21:58
mveCPallini26-Mar-12 21:58 
AnswerRe: How to fetch values from memory using structure variable name. Pin
shanmugarajaa26-Mar-12 22:33
shanmugarajaa26-Mar-12 22:33 
AnswerRe: How to fetch values from memory using structure variable name. Pin
Erudite_Eric26-Mar-12 22:44
Erudite_Eric26-Mar-12 22:44 
GeneralRe: How to fetch values from memory using structure variable name. Pin
shanmugarajaa26-Mar-12 23:44
shanmugarajaa26-Mar-12 23:44 
GeneralRe: How to fetch values from memory using structure variable name. Pin
Erudite_Eric27-Mar-12 1:38
Erudite_Eric27-Mar-12 1:38 
AnswerRe: How to fetch values from memory using structure variable name. Pin
Randor 27-Mar-12 14:16
professional Randor 27-Mar-12 14:16 
Hi,

It sounds to me like you want to do this with the compiler preprocessor. Yes you can do this but it will be very ugly indeed. You will need to build the structs with #define statements and you can retrieve the member names with the #NAME directive[^]. You can get the offset to the struct members with the FIELD_OFFSET macro.

Best Wishes,
-David Delaune
Questionc++ win32, swscanf_s - Verify my use of it. Pin
jkirkerx26-Mar-12 11:40
professionaljkirkerx26-Mar-12 11:40 
QuestionRe: c++ win32, swscanf_s - Verify my use of it. Pin
David Crow26-Mar-12 16:52
David Crow26-Mar-12 16:52 
AnswerI think it will never work Pin
jkirkerx27-Mar-12 6:10
professionaljkirkerx27-Mar-12 6:10 
AnswerRe: c++ win32, swscanf_s - Verify my use of it. Pin
Mohibur Rashid26-Mar-12 19:15
professionalMohibur Rashid26-Mar-12 19:15 
GeneralRe: c++ win32, swscanf_s - Verify my use of it. Pin
David Crow27-Mar-12 2:14
David Crow27-Mar-12 2:14 
Generaldone Pin
jkirkerx27-Mar-12 6:11
professionaljkirkerx27-Mar-12 6:11 
QuestionGet defaultUser directory Pin
MrKBA26-Mar-12 3:40
MrKBA26-Mar-12 3:40 
AnswerRe: Get defaultUser directory Pin
Chris Meech26-Mar-12 3:59
Chris Meech26-Mar-12 3:59 
GeneralRe: Get defaultUser directory Pin
MrKBA26-Mar-12 4:11
MrKBA26-Mar-12 4:11 
GeneralRe: Get defaultUser directory Pin
David Crow26-Mar-12 4:33
David Crow26-Mar-12 4:33 
QuestionRe: Get defaultUser directory Pin
David Crow26-Mar-12 4:10
David Crow26-Mar-12 4:10 
AnswerRe: Get defaultUser directory Pin
MrKBA26-Mar-12 4:14
MrKBA26-Mar-12 4:14 
QuestionRe: Get defaultUser directory Pin
David Crow26-Mar-12 4:32
David Crow26-Mar-12 4:32 
AnswerRe: Get defaultUser directory Pin
MrKBA26-Mar-12 4:47
MrKBA26-Mar-12 4:47 
AnswerRe: Get defaultUser directory Pin
MrKBA26-Mar-12 4:54
MrKBA26-Mar-12 4:54 
QuestionVC++: Can't manipulate forms Pin
f907334124-Mar-12 13:50
f907334124-Mar-12 13:50 
QuestionRe: VC++: Can't manipulate forms Pin
David Crow24-Mar-12 16:00
David Crow24-Mar-12 16: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.