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

C / C++ / MFC

 
GeneralRe: XML File creation from VC++ coding . How? Pin
Hamid_RT16-Nov-06 4:20
Hamid_RT16-Nov-06 4:20 
GeneralRe: XML File creation from VC++ coding . How? Pin
toxcct16-Nov-06 4:27
toxcct16-Nov-06 4:27 
GeneralRe: XML File creation from VC++ coding . How? Pin
Hamid_RT16-Nov-06 8:05
Hamid_RT16-Nov-06 8:05 
GeneralRe: XML File creation from VC++ coding . How? Pin
toxcct16-Nov-06 21:30
toxcct16-Nov-06 21:30 
GeneralRe: XML File creation from VC++ coding . How? Pin
David Crow15-Nov-06 2:32
David Crow15-Nov-06 2:32 
QuestionIP @ Pin
wiemounir14-Nov-06 22:47
wiemounir14-Nov-06 22:47 
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 
Hi all,
Iam trying to understand array of pointers and functions.
I tried doing the following but get warning messages. I have mentioned the warning message above the respective lines.
Can anyone help me fix it.?
Thanks in advance.


char * Names;<br />
int next = 0;<br />
char * list = "Abc";<br />
<br />
//warning: assignment makes integer from pointer without a cast<br />
Names[ next ] = malloc( sizeof( char )*( strlen( list ) + 1 ) );<br />
//warning: passing arg 1 of `memcpy' makes pointer from integer without a cast<br />
memcpy( Names[ next ],list,sizeof( char )*( strlen( list ) + 1 ) );<br />
<br />
list = "cdefg";<br />
//warning: assignment makes integer from pointer without a cast<br />
Names[ next+1 ] = malloc( sizeof( char )*( strlen( list ) + 1 ) );<br />
//warning: passing arg 1 of `memcpy' makes pointer from integer without a cast<br />
memcpy( Names[ next+1 ],list,sizeof( char )*( strlen( list ) + 1 ) );<br />
<br />
// warning: format argument is not a pointer (arg 2)<br />
printf("vsp list got is %s\n", Names[0] );<br />
printf("vsp list got is %s\n", Names[1] );<br />

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 
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 

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.