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

C / C++ / MFC

 
QuestionLPTSTR to char* Pin
georgekjolly17-Aug-06 6:51
georgekjolly17-Aug-06 6:51 
AnswerRe: LPTSTR to char* Pin
led mike17-Aug-06 6:55
led mike17-Aug-06 6:55 
QuestionRe: LPTSTR to char* Pin
David Crow17-Aug-06 6:55
David Crow17-Aug-06 6:55 
AnswerRe: LPTSTR to char* Pin
Zac Howland17-Aug-06 6:57
Zac Howland17-Aug-06 6:57 
Questionc++ Pin
jon-8017-Aug-06 6:05
professionaljon-8017-Aug-06 6:05 
AnswerRe: c++ Pin
Zac Howland17-Aug-06 6:13
Zac Howland17-Aug-06 6:13 
GeneralRe: c++ Pin
jon-8017-Aug-06 8:02
professionaljon-8017-Aug-06 8:02 
GeneralRe: c++ Pin
Zac Howland17-Aug-06 8:16
Zac Howland17-Aug-06 8:16 
First of all, this is one of the reasons why a few people recommended you use the standard string class, but I digress.

You're list class (which I believe you called GenericList), should have some accessor (either a get method, or iterators) to the data it holds. Whatever module is using the above code (the one calling strdup) should also have a cleanup method (or simply the destructor) that will iterate through the list and call free on each data element prior to emptying the list (which the list class itself should take care of).

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: c++ Pin
jon-8018-Aug-06 9:01
professionaljon-8018-Aug-06 9:01 
QuestionLinking Error /outportb Pin
cahit2317-Aug-06 5:55
cahit2317-Aug-06 5:55 
AnswerRe: Linking Error /outportb Pin
kakan17-Aug-06 20:48
professionalkakan17-Aug-06 20:48 
Questionproblems with winsock Pin
afpr17-Aug-06 5:43
afpr17-Aug-06 5:43 
AnswerRe: problems with winsock Pin
lucy17-Aug-06 5:47
lucy17-Aug-06 5:47 
GeneralRe: problems with winsock [modified] Pin
afpr17-Aug-06 6:04
afpr17-Aug-06 6:04 
GeneralRe: problems with winsock Pin
Zac Howland17-Aug-06 6:23
Zac Howland17-Aug-06 6:23 
GeneralRe: problems with winsock [modified] Pin
afpr17-Aug-06 6:26
afpr17-Aug-06 6:26 
GeneralRe: problems with winsock Pin
Zac Howland17-Aug-06 6:58
Zac Howland17-Aug-06 6:58 
GeneralRe: problems with winsock Pin
afpr17-Aug-06 8:16
afpr17-Aug-06 8:16 
GeneralRe: problems with winsock Pin
David Crow17-Aug-06 8:24
David Crow17-Aug-06 8:24 
GeneralRe: problems with winsock Pin
Zac Howland17-Aug-06 9:50
Zac Howland17-Aug-06 9:50 
GeneralRe: problems with winsock Pin
afpr17-Aug-06 10:33
afpr17-Aug-06 10:33 
GeneralRe: problems with winsock Pin
Zac Howland17-Aug-06 10:42
Zac Howland17-Aug-06 10:42 
GeneralRe: problems with winsock Pin
afpr17-Aug-06 11:40
afpr17-Aug-06 11:40 
GeneralRe: problems with winsock Pin
Hamid_RT18-Aug-06 6:31
Hamid_RT18-Aug-06 6:31 
QuestionselectSingleNode() and setProperty() Pin
harilal17-Aug-06 5:32
harilal17-Aug-06 5:32 

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.