Click here to Skip to main content
15,928,983 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to know whether a file is saved or not Pin
Hamid_RT18-Aug-06 6:43
Hamid_RT18-Aug-06 6:43 
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 
Regarding the third point it makes sense from a design point of view, but, how can I free up memory from the calling module?

The memory heap is allocated as follows:

...
while (!fileToRead.eof() && Size < MAX_LINES)
// Read line of text from file and update Sentences.strSentence.
{ fileToRead.getline(strLine, MAX_SENTENCE_LENGTH);
Sentences.Insert(strdup(strLine));
// string is copied, this is where I think I am allocating memory.
Size++;
}

...

The problem is that protected members and public members cannot be called from derived classes (somehow!!). Can I send u the code somewhere?

Jon
GeneralRe: c++ Pin
Zac Howland17-Aug-06 8:16
Zac Howland17-Aug-06 8:16 
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 

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.