Click here to Skip to main content
15,919,879 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help! How to update the resource in an exe file under Win98? Pin
Baris Kurtlutepe10-Mar-03 21:47
Baris Kurtlutepe10-Mar-03 21:47 
GeneralRe: Help! How to update the resource in an exe file under Win98? Pin
stanley guan11-Mar-03 13:20
stanley guan11-Mar-03 13:20 
GeneralRe: Help! How to update the resource in an exe file under Win98? Pin
stanley guan11-Mar-03 14:11
stanley guan11-Mar-03 14:11 
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 
I am a professional, but unfortunately junior, developer, and I'm looking to do something that I thought I knew how to do.

Now, I cannot recall how to do it, and I'm feeling... well, terribly ignorant.

What is going on is I want to create an array of arrays - in specific, I'm making a pointer of pointers, actually.

I want each of the pointers in the "array" to point at an object of the same type. I wanted to set up a for-loop to assign these.

In other words, I have something like:

TCSpinEdit ** SpinnerArray;

SpinnerArray = new TCSpinEdit *[58];

for (int iCtr = 0; iCtr < 58; iCtr++)

the name of each of these objects starts out with CSpin followed by a number, from 1 to 58; so I need to point to CSpin1, then CSpin2, etc.

Therefore, I need to generate a string, or whathave you, to designate each CSpin variable to each of the pointes in the array.

And I realized I was unsure how to go about this.

I started originally by using the string class; assign it as:

string = "Cspin" + iCtr;

But I realized I wasn't sure how to use the string to refer to a variable NAME. Any suggestions?

Thanks!

James A Beggs
Microsoft MSN Mobile Component Test Team
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 
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 

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.