Click here to Skip to main content
16,015,755 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: 900520 - VC6 vs VS 2010 Pin
ilostmyid212-Aug-11 0:14
professionalilostmyid212-Aug-11 0:14 
GeneralRe: 900520 - VC6 vs VS 2010 Pin
Maximilien12-Aug-11 0:52
Maximilien12-Aug-11 0:52 
GeneralRe: 900520 - VC6 vs VS 2010 Pin
ilostmyid212-Aug-11 7:21
professionalilostmyid212-Aug-11 7:21 
GeneralRe: 900520 - VC6 vs VS 2010 Pin
Maximilien12-Aug-11 7:47
Maximilien12-Aug-11 7:47 
GeneralRe: 900520 - VC6 vs VS 2010 Pin
ilostmyid212-Aug-11 7:59
professionalilostmyid212-Aug-11 7:59 
GeneralRe: 900520 - VC6 vs VS 2010 Pin
MicroVirus12-Aug-11 8:31
MicroVirus12-Aug-11 8:31 
GeneralRe: 900520 - VC6 vs VS 2010 Pin
ilostmyid212-Aug-11 13:39
professionalilostmyid212-Aug-11 13:39 
GeneralRe: 900520 - VC6 vs VS 2010 Pin
MicroVirus12-Aug-11 4:36
MicroVirus12-Aug-11 4:36 
From the discussions, it looks like the code is attempting to select 'the same' button (int in the modified example) from every instance of class A, using an index and the Info array.
So, as a way of selecting the first or the second button on each instance of A and working with that.
C++
int whichButton = 1; // or 2
A* arrayOfA = ... // some value

for (int i = 0; i < numOfAs; i++)
{
  CButton& button = arrayOfA[i].*(A::m_values[whichButton]);
  ... // do things with button
}


Or something like that. It's probably a good idea to find out what the code does with this. You should search for all references to A::m_values and find out what exactly it's for.
Then, think of a proper way of implementing that, or verify that it still works and keep it.
AnswerRe: 900520 - VC6 vs VS 2010 Pin
ilostmyid212-Aug-11 18:22
professionalilostmyid212-Aug-11 18:22 
GeneralRe: 900520 - VC6 vs VS 2010 Pin
ilostmyid212-Aug-11 18:30
professionalilostmyid212-Aug-11 18:30 
QuestionDirecting logcxx to a log4net appender Pin
Berlus10-Aug-11 23:47
Berlus10-Aug-11 23:47 
AnswerRe: Directing logcxx to a log4net appender Pin
Richard MacCutchan11-Aug-11 5:50
mveRichard MacCutchan11-Aug-11 5:50 
AnswerRe: Directing logcxx to a log4net appender Pin
jschell11-Aug-11 13:03
jschell11-Aug-11 13:03 
QuestionHow to eliminate MOBILE SDK from my Document Explorer 2008? Pin
Cold_Fearing_Bird10-Aug-11 19:19
Cold_Fearing_Bird10-Aug-11 19:19 
AnswerRe: How to eliminate MOBILE SDK from my Document Explorer 2008? Pin
Richard MacCutchan10-Aug-11 22:59
mveRichard MacCutchan10-Aug-11 22:59 
GeneralRe: How to eliminate MOBILE SDK from my Document Explorer 2008? Pin
Cold_Fearing_Bird11-Aug-11 0:11
Cold_Fearing_Bird11-Aug-11 0:11 
GeneralRe: How to eliminate MOBILE SDK from my Document Explorer 2008? Pin
Richard MacCutchan11-Aug-11 0:26
mveRichard MacCutchan11-Aug-11 0:26 
QuestionVC6 in Win 7 problem Pin
_Flaviu10-Aug-11 19:06
_Flaviu10-Aug-11 19:06 
AnswerRe: VC6 in Win 7 problem Pin
ThatsAlok10-Aug-11 20:39
ThatsAlok10-Aug-11 20:39 
AnswerRe: VC6 in Win 7 problem Pin
MicroVirus11-Aug-11 6:59
MicroVirus11-Aug-11 6:59 
GeneralRe: VC6 in Win 7 problem Pin
_Flaviu11-Aug-11 21:38
_Flaviu11-Aug-11 21:38 
GeneralRe: VC6 in Win 7 problem Pin
MicroVirus12-Aug-11 4:25
MicroVirus12-Aug-11 4:25 
GeneralRe: VC6 in Win 7 problem Pin
_Flaviu11-Aug-11 21:37
_Flaviu11-Aug-11 21:37 
QuestionHow to do the MFC to get the return of another console program? Pin
adalcol10-Aug-11 4:55
adalcol10-Aug-11 4:55 
QuestionRe: How to do the MFC to get the return of another console program? Pin
David Crow10-Aug-11 5:26
David Crow10-Aug-11 5:26 

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.