Click here to Skip to main content
15,921,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accessing mainframe menu from a non-modal dialog box Pin
BadJerry10-May-07 4:02
BadJerry10-May-07 4:02 
GeneralRe: Accessing mainframe menu from a non-modal dialog box Pin
BadJerry10-May-07 5:35
BadJerry10-May-07 5:35 
AnswerThanks to everyone : solution! Pin
BadJerry10-May-07 5:34
BadJerry10-May-07 5:34 
QuestionFile operation problem Pin
sandeepkavade10-May-07 0:26
sandeepkavade10-May-07 0:26 
AnswerRe: File operation problem Pin
BadJerry10-May-07 1:07
BadJerry10-May-07 1:07 
QuestionRe: File operation problem Pin
David Crow10-May-07 1:46
David Crow10-May-07 1:46 
Questionmalloc and strings Pin
DarkWeaver545510-May-07 0:15
DarkWeaver545510-May-07 0:15 
AnswerRe: malloc and strings Pin
BadJerry10-May-07 0:50
BadJerry10-May-07 0:50 
The big question is how you call addNode and especially if sData has been allocated by alloc or do you call it like this addNode(pParent,"newNode")!
Because your freeNode frees the data, I think your addnode should allocate it as well... so I would rewrite it like this

in your addNode
temp->sData = sData;


temp->sData = malloc(strlen(sdata)+1);
strcpy(temp->sData,sdata);


Hoping this helps!
GeneralRe: malloc and strings Pin
DarkWeaver545510-May-07 2:33
DarkWeaver545510-May-07 2:33 
QuestionRe: malloc and strings Pin
David Crow10-May-07 1:54
David Crow10-May-07 1:54 
QuestionRe: malloc and strings Pin
DarkWeaver545510-May-07 2:16
DarkWeaver545510-May-07 2:16 
AnswerRe: malloc and strings Pin
David Crow10-May-07 2:21
David Crow10-May-07 2:21 
GeneralRe: malloc and strings Pin
DarkWeaver545510-May-07 2:37
DarkWeaver545510-May-07 2:37 
QuestionGif image Pin
prathuraj10-May-07 0:14
prathuraj10-May-07 0:14 
AnswerRe: Gif image Pin
Hamid_RT10-May-07 2:14
Hamid_RT10-May-07 2:14 
GeneralRe: Gif image Pin
prathuraj10-May-07 5:15
prathuraj10-May-07 5:15 
GeneralRe: Gif image Pin
Hamid_RT10-May-07 6:52
Hamid_RT10-May-07 6:52 
AnswerRe: Gif image Pin
ThatsAlok16-May-07 21:16
ThatsAlok16-May-07 21:16 
Questiondata problem Pin
p_10-May-07 0:06
p_10-May-07 0:06 
Questionmaking windows service with wxwidget Pin
seneralex9-May-07 23:46
seneralex9-May-07 23:46 
AnswerRe: making windows service with wxwidget Pin
ThatsAlok16-May-07 21:15
ThatsAlok16-May-07 21:15 
AnswerRe: making windows service with wxwidget Pin
Priyank Bolia16-May-07 21:53
Priyank Bolia16-May-07 21:53 
QuestionReporting tool Pin
Piyush Thacker9-May-07 23:33
Piyush Thacker9-May-07 23:33 
JokeRe: Reporting tool Pin
Programm3r9-May-07 23:40
Programm3r9-May-07 23:40 
GeneralRe: Reporting tool Pin
BadJerry10-May-07 1:36
BadJerry10-May-07 1:36 

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.