Click here to Skip to main content
15,892,517 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsingle/multiple selection in List control Pin
IlanTal15-Jan-06 4:08
IlanTal15-Jan-06 4:08 
AnswerRe: single/multiple selection in List control Pin
FarPointer15-Jan-06 4:28
FarPointer15-Jan-06 4:28 
AnswerRe: single/multiple selection in List control Pin
sps-itsec4615-Jan-06 6:55
sps-itsec4615-Jan-06 6:55 
GeneralRe: single/multiple selection in List control Pin
IlanTal15-Jan-06 19:17
IlanTal15-Jan-06 19:17 
Questionneed suggestion(constructer? / better?) Pin
neodeaths14-Jan-06 23:33
neodeaths14-Jan-06 23:33 
AnswerRe: need suggestion(constructer? / better?) Pin
includeh1015-Jan-06 3:38
includeh1015-Jan-06 3:38 
GeneralRe: need suggestion(constructer? / better?) Pin
Michel Wassink15-Jan-06 4:09
Michel Wassink15-Jan-06 4:09 
AnswerRe: need suggestion(constructer? / better?) Pin
Gary R. Wheeler15-Jan-06 3:54
Gary R. Wheeler15-Jan-06 3:54 
1. In a debug compile, the ptr[] array will be initialized to zero's. In a release compile, it will be random data. As a rule, always initialize your data.

2. if (ptr[0] = NULL) does an assignment inside an if, which is not good practice.
int main()
{
  int *ptr[2];
  for (int i = 0; i < 2; i++) {
    ptr[i] = NULL;
  }
  //...
  if (ptr[0] == NULL) {
    cout << "this is empty" << endl;
  }
}



Software Zen: delete this;
AnswerRe: need suggestion(constructer? / better?) Pin
Nish Nishant15-Jan-06 4:05
sitebuilderNish Nishant15-Jan-06 4:05 
AnswerRe: need suggestion(constructer? / better?) Pin
vikas amin16-Jan-06 0:52
vikas amin16-Jan-06 0:52 
Questiondynamic memeory aloocation question Pin
neodeaths14-Jan-06 23:12
neodeaths14-Jan-06 23:12 
AnswerRe: dynamic memeory aloocation question Pin
includeh1015-Jan-06 4:00
includeh1015-Jan-06 4:00 
AnswerRe: dynamic memeory aloocation question Pin
Nish Nishant15-Jan-06 4:11
sitebuilderNish Nishant15-Jan-06 4:11 
GeneralRe: dynamic memeory aloocation question Pin
neodeaths15-Jan-06 4:31
neodeaths15-Jan-06 4:31 
GeneralRe: dynamic memeory aloocation question Pin
Nish Nishant15-Jan-06 5:35
sitebuilderNish Nishant15-Jan-06 5:35 
GeneralRe: dynamic memeory aloocation question Pin
Roland Pibinger15-Jan-06 5:42
Roland Pibinger15-Jan-06 5:42 
GeneralRe: dynamic memeory aloocation question Pin
Nish Nishant15-Jan-06 6:08
sitebuilderNish Nishant15-Jan-06 6:08 
AnswerRe: dynamic memeory aloocation question Pin
Roland Pibinger15-Jan-06 5:34
Roland Pibinger15-Jan-06 5:34 
QuestionDirectX Pin
AJ12314-Jan-06 22:13
AJ12314-Jan-06 22:13 
AnswerRe: DirectX Pin
CPP_Student15-Jan-06 20:23
CPP_Student15-Jan-06 20:23 
Questionlogger performance Pin
Chintoo72314-Jan-06 22:07
Chintoo72314-Jan-06 22:07 
QuestionRe: logger performance Pin
Roland Pibinger15-Jan-06 4:00
Roland Pibinger15-Jan-06 4:00 
AnswerRe: logger performance Pin
Chintoo72315-Jan-06 4:38
Chintoo72315-Jan-06 4:38 
GeneralRe: logger performance Pin
Roland Pibinger15-Jan-06 5:55
Roland Pibinger15-Jan-06 5:55 
GeneralRe: logger performance Pin
Chintoo72315-Jan-06 15:38
Chintoo72315-Jan-06 15:38 

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.