Click here to Skip to main content
15,891,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Reading files... Pin
David Crow20-Jan-10 17:03
David Crow20-Jan-10 17:03 
AnswerRe: Reading files... Pin
Jacob Dixon20-Jan-10 17:11
Jacob Dixon20-Jan-10 17:11 
QuestionSpin control: how does it works, specially when it changes acceleration ? Pin
timbk20-Jan-10 13:40
timbk20-Jan-10 13:40 
Questionconcat two char * variables Pin
santhosh-padamatinti20-Jan-10 6:13
santhosh-padamatinti20-Jan-10 6:13 
AnswerRe: concat two char * variables Pin
Rajesh R Subramanian20-Jan-10 6:26
professionalRajesh R Subramanian20-Jan-10 6:26 
GeneralRe: concat two char * variables Pin
santhosh-padamatinti20-Jan-10 6:33
santhosh-padamatinti20-Jan-10 6:33 
GeneralRe: concat two char * variables Pin
Fatbuddha 120-Jan-10 6:46
Fatbuddha 120-Jan-10 6:46 
QuestionRe: concat two char * variables Pin
CPallini20-Jan-10 10:47
mveCPallini20-Jan-10 10:47 
AnswerRe: concat two char * variables Pin
Luc Pattyn20-Jan-10 11:18
sitebuilderLuc Pattyn20-Jan-10 11:18 
GeneralRe: concat two char * variables Pin
CPallini20-Jan-10 11:23
mveCPallini20-Jan-10 11:23 
AnswerRe: concat two char * variables [modified] Pin
santhosh-padamatinti20-Jan-10 20:13
santhosh-padamatinti20-Jan-10 20:13 
GeneralRe: concat two char * variables Pin
CPallini20-Jan-10 21:20
mveCPallini20-Jan-10 21:20 
GeneralRe: concat two char * variables Pin
Saravanan Sundaresan21-Jan-10 18:52
professionalSaravanan Sundaresan21-Jan-10 18:52 
AnswerRe: concat two char * variables Pin
Avi Berger20-Jan-10 7:11
Avi Berger20-Jan-10 7:11 
Note that in what you are doing, you are dealing with 6 variables. You are talking about the 3 char * variables, but as you said, those are pointers. What you must remember is that pointers are pointers - they are used to point to things, in this case arrays of char. These arrays are not automatically provided. You, the programmer, are responsible for providing them for the pointers to point to.

You have to keep in mind the distinction between pointer and "pointee". Once you do that, you would not say that you want to add or concatenate 2 pointers. Instead, you want to concatenate the 2 strings contained in 2 char arrays and put the result in a third char array. You use the pointers to access the char arrays.

Good luck
AnswerRe: concat two char * variables Pin
David Crow20-Jan-10 7:53
David Crow20-Jan-10 7:53 
GeneralRe: concat two char * variables Pin
Richard MacCutchan20-Jan-10 11:50
mveRichard MacCutchan20-Jan-10 11:50 
GeneralRe: concat two char * variables Pin
Fatbuddha 120-Jan-10 20:13
Fatbuddha 120-Jan-10 20:13 
GeneralRe: concat two char * variables Pin
CPallini20-Jan-10 20:51
mveCPallini20-Jan-10 20:51 
GeneralRe: concat two char * variables Pin
Richard MacCutchan20-Jan-10 22:14
mveRichard MacCutchan20-Jan-10 22:14 
QuestionRe: concat two char * variables Pin
CPallini20-Jan-10 22:19
mveCPallini20-Jan-10 22:19 
AnswerRe: concat two char * variables Pin
Richard MacCutchan20-Jan-10 23:15
mveRichard MacCutchan20-Jan-10 23:15 
GeneralRe: concat two char * variables Pin
CPallini20-Jan-10 23:29
mveCPallini20-Jan-10 23:29 
GeneralRe: concat two char * variables Pin
Richard MacCutchan20-Jan-10 23:36
mveRichard MacCutchan20-Jan-10 23:36 
QuestionModal vs Modeless dialog box Pin
msr_codeproject20-Jan-10 6:05
msr_codeproject20-Jan-10 6:05 
AnswerRe: Modal vs Modeless dialog box Pin
Richard MacCutchan20-Jan-10 6:08
mveRichard MacCutchan20-Jan-10 6:08 

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.