Click here to Skip to main content
15,884,629 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Tab Change Event in CPropertySheet Pin
mohanrajh19-Feb-06 18:51
mohanrajh19-Feb-06 18:51 
AnswerRe: Tab Change Event in CPropertySheet Pin
PJ Arends19-Feb-06 18:55
professionalPJ Arends19-Feb-06 18:55 
QuestionActiveX problem Pin
Rajesh R Subramanian19-Feb-06 18:10
professionalRajesh R Subramanian19-Feb-06 18:10 
AnswerRe: ActiveX problem Pin
Michael Dunn19-Feb-06 18:14
sitebuilderMichael Dunn19-Feb-06 18:14 
GeneralRe: ActiveX problem Pin
Rajesh R Subramanian19-Feb-06 18:18
professionalRajesh R Subramanian19-Feb-06 18:18 
GeneralRe: ActiveX problem Pin
Michael Dunn19-Feb-06 18:38
sitebuilderMichael Dunn19-Feb-06 18:38 
Questionstruct problem Pin
super_pointer19-Feb-06 17:35
super_pointer19-Feb-06 17:35 
AnswerRe: struct problem Pin
Ryan Binns19-Feb-06 18:06
Ryan Binns19-Feb-06 18:06 
Unless all the members of the structure are the same type, it's extremely difficult. At runtime, the structure is just a single block of memory; the compiler sorts out which offsets into the memory to use at compile time. If your members are all the same type, you can calculate the address of each member like this (assuming they're ints):
address = struct_addr + (pos * sizeof(int));
where struct_addr is a pointer to the structure and pos is the index of the structure member.

Why don't you want to use a vector or list? You're trying to store an array of data, so why not use an array?

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: struct problem Pin
Michael Dunn19-Feb-06 18:26
sitebuilderMichael Dunn19-Feb-06 18:26 
GeneralRe: struct problem Pin
Ryan Binns20-Feb-06 3:20
Ryan Binns20-Feb-06 3:20 
GeneralRe: struct problem Pin
super_pointer20-Feb-06 18:10
super_pointer20-Feb-06 18:10 
GeneralRe: struct problem Pin
Ryan Binns20-Feb-06 18:53
Ryan Binns20-Feb-06 18:53 
QuestionHow to create a custom control at runtime? Pin
followait19-Feb-06 15:51
followait19-Feb-06 15:51 
AnswerRe: How to create a custom control at runtime? Pin
PJ Arends19-Feb-06 15:57
professionalPJ Arends19-Feb-06 15:57 
QuestionC:\WINNT\system32\ntdll.dll', no matching symbolic information found. Pin
Tuscon19-Feb-06 15:48
Tuscon19-Feb-06 15:48 
AnswerRe: C:\WINNT\system32\ntdll.dll', no matching symbolic information found. Pin
PJ Arends19-Feb-06 15:55
professionalPJ Arends19-Feb-06 15:55 
GeneralRe: C:\WINNT\system32\ntdll.dll', no matching symbolic information found. Pin
Tuscon19-Feb-06 16:06
Tuscon19-Feb-06 16:06 
QuestionNeed help with to append text into Editbox Pin
the Jimmy19-Feb-06 15:27
the Jimmy19-Feb-06 15:27 
AnswerRe: Need help with to append text into Editbox Pin
PJ Arends19-Feb-06 15:50
professionalPJ Arends19-Feb-06 15:50 
GeneralRe: Need help with to append text into Editbox Pin
the Jimmy19-Feb-06 21:46
the Jimmy19-Feb-06 21:46 
QuestionProblem with bitmap image copy from Cstatic Pin
ingoogle19-Feb-06 14:53
ingoogle19-Feb-06 14:53 
Question[mfc] system tray icons Pin
Sam 200619-Feb-06 9:47
Sam 200619-Feb-06 9:47 
AnswerRe: [mfc] system tray icons Pin
David Crow19-Feb-06 9:53
David Crow19-Feb-06 9:53 
GeneralRe: [mfc] system tray icons Pin
Sam 200619-Feb-06 10:18
Sam 200619-Feb-06 10:18 
GeneralRe: [mfc] system tray icons Pin
David Crow19-Feb-06 10:34
David Crow19-Feb-06 10:34 

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.