Click here to Skip to main content
15,916,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:54
Stefan_Lang10-Nov-11 3:54 
GeneralRe: if(NULL == MyPointer) Pin
Eytukan10-Nov-11 17:03
Eytukan10-Nov-11 17:03 
GeneralRe: if(NULL == MyPointer) Pin
User 5838528-Nov-11 11:12
User 5838528-Nov-11 11:12 
AnswerRe: if(NULL == MyPointer) Pin
Chuck O'Toole8-Nov-11 11:55
Chuck O'Toole8-Nov-11 11:55 
GeneralRe: if(NULL == MyPointer) Pin
Eytukan10-Nov-11 17:05
Eytukan10-Nov-11 17:05 
GeneralRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:52
Stefan_Lang10-Nov-11 3:52 
AnswerRe: if(NULL == MyPointer) Pin
Dave Doknjas8-Nov-11 9:51
Dave Doknjas8-Nov-11 9:51 
GeneralRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:38
Stefan_Lang10-Nov-11 3:38 
In my experience, this is not true. Typing '=' instead of '==' is as often a real typing error as it is a coding oversight. I even go so far as to always put the constants on the left hand side in all comparisons, so I don't forget to do so on equality operators. I never ever had a '='/'==' error since I started using this practice some time around 1990. (I did fix quite a few such errors caused by others though, and I can tell you that kind of work is not pretty!)
GeneralRe: if(NULL == MyPointer) Pin
Eytukan10-Nov-11 17:01
Eytukan10-Nov-11 17:01 
AnswerRe: if(NULL == MyPointer) Pin
jschell8-Nov-11 10:03
jschell8-Nov-11 10:03 
AnswerRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:25
Stefan_Lang10-Nov-11 3:25 
Questionsetup with active x Pin
antonio3437-Nov-11 13:52
antonio3437-Nov-11 13:52 
AnswerRe: setup with active x Pin
Chandrasekharan P7-Nov-11 19:15
Chandrasekharan P7-Nov-11 19:15 
GeneralRe: setup with active x Pin
antonio3437-Nov-11 21:41
antonio3437-Nov-11 21:41 
AnswerRe: setup with active x Pin
Malli_S8-Nov-11 1:17
Malli_S8-Nov-11 1:17 
AnswerRe: setup with active x Pin
Eytukan8-Nov-11 7:53
Eytukan8-Nov-11 7:53 
Questionhow to use setTimer with variable time intervals Pin
mani09097-Nov-11 13:22
mani09097-Nov-11 13:22 
AnswerRe: how to use setTimer with variable time intervals Pin
Chuck O'Toole7-Nov-11 13:35
Chuck O'Toole7-Nov-11 13:35 
GeneralRe: how to use setTimer with variable time intervals Pin
Albert Holguin7-Nov-11 13:47
professionalAlbert Holguin7-Nov-11 13:47 
GeneralRe: how to use setTimer with variable time intervals Pin
mani090918-Nov-11 11:34
mani090918-Nov-11 11:34 
AnswerRe: how to use setTimer with variable time intervals Pin
Chuck O'Toole18-Nov-11 12:02
Chuck O'Toole18-Nov-11 12:02 
Question[OOP c++] practical use cases of cross casting Pin
elgaabeb7-Nov-11 6:19
elgaabeb7-Nov-11 6:19 
AnswerRe: [OOP c++] practical use cases of cross casting REPOST Pin
Richard MacCutchan7-Nov-11 7:43
mveRichard MacCutchan7-Nov-11 7:43 
GeneralRe: [OOP c++] practical use cases of cross casting REPOST Pin
Albert Holguin7-Nov-11 8:01
professionalAlbert Holguin7-Nov-11 8:01 
GeneralRe: [OOP c++] practical use cases of cross casting REPOST Pin
elgaabeb7-Nov-11 22:33
elgaabeb7-Nov-11 22:33 

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.