Click here to Skip to main content
15,914,780 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralParent Child Data Sharing Pin
GWENJi10-Mar-03 16:43
GWENJi10-Mar-03 16:43 
GeneralRe: Parent Child Data Sharing Pin
Dave Bryant10-Mar-03 17:08
Dave Bryant10-Mar-03 17:08 
GeneralRe: Parent Child Data Sharing Pin
jhwurmbach10-Mar-03 20:30
jhwurmbach10-Mar-03 20:30 
GeneralRe: Parent Child Data Sharing Pin
jhwurmbach10-Mar-03 20:31
jhwurmbach10-Mar-03 20:31 
GeneralStrings to Variable Names Pin
James A Beggs10-Mar-03 16:28
James A Beggs10-Mar-03 16:28 
GeneralRe: Strings to Variable Names Pin
Abin10-Mar-03 22:02
Abin10-Mar-03 22:02 
GeneralRe: Strings to Variable Names Pin
Cedric Moonen10-Mar-03 22:19
Cedric Moonen10-Mar-03 22:19 
GeneralRe: Strings to Variable Names Pin
jhwurmbach10-Mar-03 22:28
jhwurmbach10-Mar-03 22:28 
You seem to be confused about what you really want - I try to give you an explanation, and maybe you can then decide if this was what you intended.:

James A Beggs wrote:
TCSpinEdit ** SpinnerArray;<br />
SpinnerArray = new TCSpinEdit *[58];<br />
for (int iCtr = 0; iCtr < 58; iCtr++)


So you have a pointer to an array of 58 TCSpinEdit*s.
In your for-loop you need to initialize each of the TCSpinEdit* 0 to 57 with a pointer to a TCSpinEdit:
for (int iCtr = 0; iCtr < 58; iCtr++)
{
  SpinnerArray[iCtr]= new TCSpinEdit( parameter );
{

Your TCSpinners are now accessed as SpinnerArray[i], where i=0..57.
If you need - for whatever reason - a association between your TCSpinners and some other data, e.g. a string, you might use a std::map < string, int > to store pairs of strings and indices into your SpinnerArray.





My opinions may have changed, but not the fact that I am right.
QuestionWhat is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
ursus zeta10-Mar-03 13:10
ursus zeta10-Mar-03 13:10 
AnswerRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
whatt10-Mar-03 13:29
whatt10-Mar-03 13:29 
GeneralRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
Michael Dunn10-Mar-03 14:39
sitebuilderMichael Dunn10-Mar-03 14:39 
GeneralRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
Baris Kurtlutepe10-Mar-03 21:33
Baris Kurtlutepe10-Mar-03 21:33 
AnswerRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
Taka Muraoka10-Mar-03 13:36
Taka Muraoka10-Mar-03 13:36 
AnswerRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
73Zeppelin10-Mar-03 16:45
73Zeppelin10-Mar-03 16:45 
GeneralRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
RaajaOfSelf10-Mar-03 22:37
RaajaOfSelf10-Mar-03 22:37 
AnswerRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
567890123410-Mar-03 22:54
567890123410-Mar-03 22:54 
GeneralHa Ha, I'm such a nitwit,... Pin
ursus zeta11-Mar-03 6:42
ursus zeta11-Mar-03 6:42 
QuestionConvert CStrings to Null-terminated? Pin
brigham_young10-Mar-03 12:30
brigham_young10-Mar-03 12:30 
AnswerRe: Convert CStrings to Null-terminated? Pin
Dave Bryant10-Mar-03 12:34
Dave Bryant10-Mar-03 12:34 
AnswerRe: Convert CStrings to Null-terminated? Pin
Michael Dunn10-Mar-03 13:02
sitebuilderMichael Dunn10-Mar-03 13:02 
GeneralRe: Convert CStrings to Null-terminated? Pin
Nish Nishant10-Mar-03 13:40
sitebuilderNish Nishant10-Mar-03 13:40 
GeneralRe: Convert CStrings to Null-terminated? Pin
Michael Dunn10-Mar-03 14:43
sitebuilderMichael Dunn10-Mar-03 14:43 
QuestionHelp ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 12:27
Obi-Wan-Kenobi10-Mar-03 12:27 
AnswerRe: Help ?? Pointer to View from Doc? Pin
Dave Bryant10-Mar-03 12:37
Dave Bryant10-Mar-03 12:37 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 12:50
Obi-Wan-Kenobi10-Mar-03 12:50 

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.