Click here to Skip to main content
15,909,324 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: validating handles and pointers Pin
Electronic753-Feb-08 23:35
Electronic753-Feb-08 23:35 
GeneralRe: validating handles and pointers Pin
Cedric Moonen3-Feb-08 23:52
Cedric Moonen3-Feb-08 23:52 
GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 0:00
Electronic754-Feb-08 0:00 
GeneralRe: validating handles and pointers Pin
Cedric Moonen4-Feb-08 0:04
Cedric Moonen4-Feb-08 0:04 
GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 0:11
Electronic754-Feb-08 0:11 
GeneralRe: validating handles and pointers Pin
Cedric Moonen4-Feb-08 0:49
Cedric Moonen4-Feb-08 0:49 
GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 1:35
Electronic754-Feb-08 1:35 
GeneralRe: validating handles and pointers Pin
jhwurmbach4-Feb-08 2:45
jhwurmbach4-Feb-08 2:45 
Electronic75 wrote:
When one defines a pointer [...] it is not null then


It should be. Always initialize your variables!

Electronic75 wrote:
t should be checked especially if some naughty functions have played with it before


Do not let any naughty functions touch your private parts!

Do not program naughty functions in the first place.
If naughty functions are made by someone else and keep doing horrible things to the objects you gave them pointers to, hand them a copy of the object, and keep the original with yourself.

Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency"

GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 3:30
Electronic754-Feb-08 3:30 
GeneralRe: validating handles and pointers Pin
jhwurmbach4-Feb-08 4:02
jhwurmbach4-Feb-08 4:02 
GeneralRe: validating handles and pointers Pin
David Crow4-Feb-08 2:54
David Crow4-Feb-08 2:54 
GeneralRe: validating handles and pointers Pin
Maxwell Chen3-Feb-08 23:27
Maxwell Chen3-Feb-08 23:27 
GeneralRe: validating handles and pointers Pin
Electronic753-Feb-08 23:38
Electronic753-Feb-08 23:38 
QuestionRe: validating handles and pointers Pin
CPallini3-Feb-08 23:42
mveCPallini3-Feb-08 23:42 
GeneralRe: validating handles and pointers Pin
Electronic753-Feb-08 23:54
Electronic753-Feb-08 23:54 
GeneralRe: validating handles and pointers Pin
Cedric Moonen3-Feb-08 23:58
Cedric Moonen3-Feb-08 23:58 
QuestionRe: validating handles and pointers Pin
CPallini4-Feb-08 0:18
mveCPallini4-Feb-08 0:18 
GeneralRe: validating handles and pointers Pin
David Crow4-Feb-08 3:02
David Crow4-Feb-08 3:02 
GeneralRe: validating handles and pointers Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:08
Iain Clarke, Warrior Programmer4-Feb-08 1:08 
GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 1:53
Electronic754-Feb-08 1:53 
AnswerRe: validating handles and pointers [modified] Pin
Rajkumar R3-Feb-08 23:43
Rajkumar R3-Feb-08 23:43 
GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 0:08
Electronic754-Feb-08 0:08 
GeneralDraw Dialog on View Pin
baerten3-Feb-08 22:16
baerten3-Feb-08 22:16 
AnswerRe: Draw Dialog on View Pin
Rajkumar R3-Feb-08 23:01
Rajkumar R3-Feb-08 23:01 
GeneralRe: Draw Dialog on View Pin
baerten3-Feb-08 23:04
baerten3-Feb-08 23:04 

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.