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

C / C++ / MFC

 
AnswerRe: bitmap on button Pin
yarksun22-Nov-06 0:51
yarksun22-Nov-06 0:51 
QuestionC++ Max and Min Heaps Pin
HondaCBR60015-Nov-06 16:54
HondaCBR60015-Nov-06 16:54 
AnswerRe: C++ Max and Min Heaps Pin
Christian Graus15-Nov-06 16:59
protectorChristian Graus15-Nov-06 16:59 
QuestionVideo frame Buffer. Pin
WindowsProject15-Nov-06 15:33
WindowsProject15-Nov-06 15:33 
AnswerRe: Video frame Buffer. Pin
priyeshtinku15-Nov-06 20:49
priyeshtinku15-Nov-06 20:49 
QuestionI need help Pin
hzc1910250615-Nov-06 15:21
hzc1910250615-Nov-06 15:21 
AnswerRe: I need help Pin
Christian Graus15-Nov-06 15:29
protectorChristian Graus15-Nov-06 15:29 
Questionpassing array of pointers Pin
thathvamsi15-Nov-06 15:18
thathvamsi15-Nov-06 15:18 
Hello all,
I cannot access names[0] and names[1] inside function B. It is null if i try to access them. Can anyone help ?

funcA{<br />
char * Names[] = {};<br />
int next = 0;<br />
char * list = "Abc";<br />
<br />
<br />
Names[ next ] = malloc( sizeof( char )*( strlen( list ) + 1 ) );<br />
memcpy( Names[ next ],list,sizeof( char )*( strlen( list ) + 1 ) );<br />
<br />
list = "cdefg";<br />
Names[ next+1 ] = malloc( sizeof( char )*( strlen( list ) + 1 ) );<br />
memcpy( Names[ next+1 ],list,sizeof( char )*( strlen( list ) + 1 ) );<br />
<br />
printf("vsp list got is %s\n", Names[0] );<br />
printf("vsp list got is %s\n", Names[1] );<br />
<br />
funcB(....,...,(const char**)&Names);<br />
}<br />
<br />
funcB(...,...,const char ** names)<br />
{<br />
....<br />
//the actual values names[0] and names[1] are to be accessed and used but they are null!!!???<br />
...<br />
//free names[0] and names[1]<br />
free( (char*)names[0]);<br />
free( (char*)names[1]);<br />
<br />
}

AnswerRe: passing array of pointers Pin
Christian Graus15-Nov-06 15:26
protectorChristian Graus15-Nov-06 15:26 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 15:37
thathvamsi15-Nov-06 15:37 
GeneralRe: passing array of pointers Pin
Christian Graus15-Nov-06 15:41
protectorChristian Graus15-Nov-06 15:41 
GeneralRe: passing array of pointers Pin
thathvamsi15-Nov-06 15:50
thathvamsi15-Nov-06 15:50 
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 
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 

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.