Click here to Skip to main content
15,925,723 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: IP @ Pin
toxcct14-Nov-06 23:13
toxcct14-Nov-06 23:13 
Questionarray of pointers Pin
thathvamsi14-Nov-06 22:44
thathvamsi14-Nov-06 22:44 
AnswerRe: array of pointers Pin
Cedric Moonen14-Nov-06 23:05
Cedric Moonen14-Nov-06 23:05 
AnswerRe: array of pointers Pin
toxcct14-Nov-06 23:07
toxcct14-Nov-06 23:07 
GeneralRe: array of pointers Pin
thathvamsi15-Nov-06 4:37
thathvamsi15-Nov-06 4:37 
GeneralRe: array of pointers Pin
toxcct15-Nov-06 4:44
toxcct15-Nov-06 4:44 
GeneralRe: array of pointers Pin
thathvamsi15-Nov-06 4:58
thathvamsi15-Nov-06 4:58 
AnswerRe: array of pointers Pin
Mr.Brainley14-Nov-06 23:09
Mr.Brainley14-Nov-06 23:09 
Names[ next ] dereferences the pointer, so it is actually a char. So when you try to assign a pointer to it (malloc returns void*), or assign it to a pointer (memcpy takes void*, %s as format string takes a char *), you try to assign an adress to to a value-type. This is of course not wrong, but it is most likely not what you want, hence the warning. The solution would be to declare char ** Names. Then you wold first have to allocate memory on Names with the size of the char *. Then you could allocate memory for Names[x] and do what you did here. I'm to lazy to write out the code here, also, figuring it out yourself is much better practice Wink | ;)

Hope it helped a little.
Questionk shortest paths problem Pin
nguyenvodich14-Nov-06 22:15
nguyenvodich14-Nov-06 22:15 
QuestionMSXML DTD and validation Pin
Raj Prathap14-Nov-06 21:52
Raj Prathap14-Nov-06 21:52 
QuestionGDI handle count Pin
Waldermort14-Nov-06 21:12
Waldermort14-Nov-06 21:12 
AnswerRe: GDI handle count Pin
PJ Arends14-Nov-06 21:31
professionalPJ Arends14-Nov-06 21:31 
GeneralRe: GDI handle count Pin
Waldermort14-Nov-06 21:41
Waldermort14-Nov-06 21:41 
GeneralRe: GDI handle count Pin
PJ Arends14-Nov-06 21:56
professionalPJ Arends14-Nov-06 21:56 
GeneralRe: GDI handle count Pin
Waldermort14-Nov-06 22:22
Waldermort14-Nov-06 22:22 
AnswerRe: GDI handle count Pin
Mark Salsbery15-Nov-06 8:21
Mark Salsbery15-Nov-06 8:21 
QuestionLanguage Bar Pin
paulgafa14-Nov-06 20:53
paulgafa14-Nov-06 20:53 
Questionmanifest and xp themes Pin
Jeremy Falcon14-Nov-06 20:25
professionalJeremy Falcon14-Nov-06 20:25 
AnswerRe: manifest and xp themes Pin
PJ Arends14-Nov-06 20:53
professionalPJ Arends14-Nov-06 20:53 
GeneralRe: manifest and xp themes Pin
Jeremy Falcon14-Nov-06 21:09
professionalJeremy Falcon14-Nov-06 21:09 
JokeRe: manifest and xp themes Pin
PJ Arends14-Nov-06 21:18
professionalPJ Arends14-Nov-06 21:18 
GeneralRe: manifest and xp themes Pin
Jeremy Falcon14-Nov-06 21:25
professionalJeremy Falcon14-Nov-06 21:25 
GeneralRe: manifest and xp themes Pin
Jeremy Falcon15-Nov-06 7:09
professionalJeremy Falcon15-Nov-06 7:09 
GeneralRe: manifest and xp themes Pin
PJ Arends15-Nov-06 14:25
professionalPJ Arends15-Nov-06 14:25 
GeneralRe: manifest and xp themes Pin
Jeremy Falcon15-Nov-06 14:27
professionalJeremy Falcon15-Nov-06 14:27 

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.