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

C / C++ / MFC

 
GeneralRe: Store String in Array Pin
Cedric Moonen25-Sep-08 22:07
Cedric Moonen25-Sep-08 22:07 
GeneralRe: Store String in Array Pin
LearnVC++MFC25-Sep-08 22:10
LearnVC++MFC25-Sep-08 22:10 
GeneralRe: Store String in Array Pin
Michael Schubert25-Sep-08 23:05
Michael Schubert25-Sep-08 23:05 
GeneralRe: Store String in Array Pin
Cedric Moonen25-Sep-08 23:15
Cedric Moonen25-Sep-08 23:15 
GeneralRe: Store String in Array Pin
LearnVC++MFC26-Sep-08 0:05
LearnVC++MFC26-Sep-08 0:05 
GeneralRe: Store String in Array Pin
Michael Schubert26-Sep-08 0:10
Michael Schubert26-Sep-08 0:10 
GeneralRe: Store String in Array Pin
LearnVC++MFC26-Sep-08 0:20
LearnVC++MFC26-Sep-08 0:20 
GeneralRe: Store String in Array Pin
Michael Schubert26-Sep-08 1:03
Michael Schubert26-Sep-08 1:03 
First of all, CString a[100] is an array of type CString. In your example you assign the value of "b" to the first two elements of "a". So, your code does exactly what you described:
LearnVC++MFC wrote:
Every time both a1[0] and a1[1] values is changed


If you want different values in a[0] and a[1] then you have to assign different values and not the same.
GeneralRe: Store String in Array Pin
Cedric Moonen26-Sep-08 1:04
Cedric Moonen26-Sep-08 1:04 
GeneralRe: Store String in Array Pin
Mark Schumann26-Sep-08 10:32
Mark Schumann26-Sep-08 10:32 
AnswerRe: Store String in Array Pin
KarstenK25-Sep-08 21:26
mveKarstenK25-Sep-08 21:26 
QuestionRe: Store String in Array Pin
David Crow26-Sep-08 2:53
David Crow26-Sep-08 2:53 
Questionload bitmap.............. Pin
ani_ikram25-Sep-08 20:09
ani_ikram25-Sep-08 20:09 
AnswerRe: load bitmap.............. Pin
Perspx25-Sep-08 20:18
Perspx25-Sep-08 20:18 
GeneralRe: load bitmap.............. Pin
ani_ikram25-Sep-08 20:32
ani_ikram25-Sep-08 20:32 
GeneralRe: load bitmap.............. Pin
Perspx26-Sep-08 5:55
Perspx26-Sep-08 5:55 
AnswerRe: load bitmap.............. Pin
PJ Arends25-Sep-08 20:30
professionalPJ Arends25-Sep-08 20:30 
GeneralRe: load bitmap.............. Pin
ani_ikram25-Sep-08 20:36
ani_ikram25-Sep-08 20:36 
GeneralRe: load bitmap.............. Pin
KarstenK25-Sep-08 21:29
mveKarstenK25-Sep-08 21:29 
GeneralRe: load bitmap.............. Pin
Mark Salsbery26-Sep-08 5:30
Mark Salsbery26-Sep-08 5:30 
QuestionMultilanguage support in VC++ Pin
AnithaSubramani25-Sep-08 20:04
AnithaSubramani25-Sep-08 20:04 
AnswerRe: Multilanguage support in VC++ Pin
SandipG 25-Sep-08 20:22
SandipG 25-Sep-08 20:22 
QuestionWhich thread has created this window? [modified] Pin
Joseph Marzbani25-Sep-08 19:59
Joseph Marzbani25-Sep-08 19:59 
AnswerRe: Which thread has created this window? Pin
ThatsAlok25-Sep-08 20:37
ThatsAlok25-Sep-08 20:37 
AnswerRe: Which thread has created this window? Pin
Joseph Marzbani25-Sep-08 21:26
Joseph Marzbani25-Sep-08 21: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.