Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Navigation Error Pin
Nibu babu thomas31-Dec-06 23:04
Nibu babu thomas31-Dec-06 23:04 
GeneralRe: Navigation Error Pin
Shouvik Das31-Dec-06 23:10
Shouvik Das31-Dec-06 23:10 
GeneralRe: Navigation Error Pin
Nibu babu thomas1-Jan-07 18:38
Nibu babu thomas1-Jan-07 18:38 
GeneralRe: Navigation Error Pin
Shouvik Das1-Jan-07 18:52
Shouvik Das1-Jan-07 18:52 
QuestionCompression - RAR Pin
Imtiaz Murtaza31-Dec-06 16:37
Imtiaz Murtaza31-Dec-06 16:37 
QuestionDirectshow question Pin
godspeed12331-Dec-06 9:29
godspeed12331-Dec-06 9:29 
AnswerRe: Directshow question Pin
Mark Salsbery31-Dec-06 10:51
Mark Salsbery31-Dec-06 10:51 
QuestionWill do this generate a memory leak? Pin
Joan M30-Dec-06 23:17
professionalJoan M30-Dec-06 23:17 
I guess so, but I would like to be sure of that:
LPSTR CTamScintillaCtrl::GetText ()
{
   long lLen = SendMessage(SCI_GETLENGTH, 0, 0) + 1;
   if (lLen > 0)
   {
      TCHAR *pReturn = new TCHAR[lLen];
      if (pReturn != NULL)
      {
         *pReturn = '\0';
				 
				 
         SendMessage(SCI_GETTEXT, lLen, (long)pReturn);
         return pReturn;
      }
   }
   return NULL;
}


Thank you.
AnswerRe: Will do this generate a memory leak? Pin
Gary R. Wheeler31-Dec-06 1:22
Gary R. Wheeler31-Dec-06 1:22 
AnswerRe: Will do this generate a memory leak? Pin
Gary R. Wheeler31-Dec-06 1:25
Gary R. Wheeler31-Dec-06 1:25 
AnswerRe: Will do this generate a memory leak? Pin
toxcct31-Dec-06 2:15
toxcct31-Dec-06 2:15 
AnswerYes, if the caller doesn't delete the pointer. Pin
CPallini31-Dec-06 6:58
mveCPallini31-Dec-06 6:58 
Questionno_input comes into reality Pin
davvid30-Dec-06 23:15
davvid30-Dec-06 23:15 
Answerjust a guess Pin
toxcct31-Dec-06 2:27
toxcct31-Dec-06 2:27 
GeneralRe: just a guess Pin
davvid31-Dec-06 2:46
davvid31-Dec-06 2:46 
AnswerRe: no_input comes into reality Pin
CPallini31-Dec-06 11:02
mveCPallini31-Dec-06 11:02 
QuestionIE7 settings Pin
Waldermort30-Dec-06 20:52
Waldermort30-Dec-06 20:52 
AnswerRe: IE7 settings Pin
Michael Dunn30-Dec-06 21:50
sitebuilderMichael Dunn30-Dec-06 21:50 
QuestionHow do I have a "Splitter Functionality" without using CSplitterWind ? [modified] Pin
erajsri30-Dec-06 18:32
erajsri30-Dec-06 18:32 
AnswerRe: How do I have a "Splitter Functionality" without using CSplitterWind ? Pin
Mark Salsbery31-Dec-06 5:43
Mark Salsbery31-Dec-06 5:43 
GeneralRe: How do I have a "Splitter Functionality" without using CSplitterWind ? Pin
erajsri31-Dec-06 15:36
erajsri31-Dec-06 15:36 
AnswerRe: How do I have a "Splitter Functionality" without using CSplitterWind ? Pin
Cristian Amarie2-Jan-07 4:03
Cristian Amarie2-Jan-07 4:03 
Questionunary minus in backwards for-loop question [modified] Pin
FocusedWolf30-Dec-06 17:00
FocusedWolf30-Dec-06 17:00 
AnswerRe: unary minus in backwards for-loop question Pin
Michael Dunn30-Dec-06 18:16
sitebuilderMichael Dunn30-Dec-06 18:16 
AnswerRe: unary minus in backwards for-loop question Pin
John M. Drescher30-Dec-06 18:17
John M. Drescher30-Dec-06 18:17 

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.