Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 16:02
protectorChristian Graus15-Nov-06 16:02 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 16:49
thathvamsi15-Nov-06 16:49 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 16:51
protectorChristian Graus15-Nov-06 16:51 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 17:18
thathvamsi15-Nov-06 17:18 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 17:21
protectorChristian Graus15-Nov-06 17:21 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 17:23
thathvamsi15-Nov-06 17:23 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 17:30
protectorChristian Graus15-Nov-06 17:30 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 18:55
thathvamsi15-Nov-06 18:55 
hi...I tried doing the following:

const char* str1 = "abcd";
char* str2;
strcpy(str2,str1);

There is no compilation error or warning. but the program crahses at this stcpy line. Why would it?

Can I do this?
str2= str1;
will this work? what happens when i dothis?
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 19:12
protectorChristian Graus15-Nov-06 19:12 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 20:06
thathvamsi15-Nov-06 20:06 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 20:10
protectorChristian Graus15-Nov-06 20:10 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 21:45
thathvamsi15-Nov-06 21:45 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 21:56
protectorChristian Graus15-Nov-06 21:56 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 22:12
thathvamsi15-Nov-06 22:12 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 22:30
protectorChristian Graus15-Nov-06 22:30 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 22:35
protectorChristian Graus15-Nov-06 22:35 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 23:08
thathvamsi15-Nov-06 23:08 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 23:11
protectorChristian Graus15-Nov-06 23:11 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 23:09
protectorChristian Graus15-Nov-06 23:09 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 23:19
thathvamsi15-Nov-06 23:19 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 23:22
protectorChristian Graus15-Nov-06 23:22 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 23:23
protectorChristian Graus15-Nov-06 23:23 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 23:33
thathvamsi15-Nov-06 23:33 
AnswerRe: passing array of pointers Pin
Raj Prathap15-Nov-06 18:47
Raj Prathap15-Nov-06 18:47 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 18:53
thathvamsi15-Nov-06 18:53 

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.