Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConversion of Unsigned __int64 to binary does not work in 2003 Pin
AAKAra26-Feb-07 9:02
AAKAra26-Feb-07 9:02 
AnswerRe: Conversion of Unsigned __int64 to binary does not work in 2003 Pin
Mark Salsbery26-Feb-07 9:19
Mark Salsbery26-Feb-07 9:19 
GeneralRe: Conversion of Unsigned __int64 to binary does not work in 2003 Pin
AAKAra26-Feb-07 10:00
AAKAra26-Feb-07 10:00 
QuestionHandle Reuse Problems? [modified] Pin
V3RO26-Feb-07 7:50
V3RO26-Feb-07 7:50 
AnswerRe: Handle Reuse Problems? Pin
Mark Salsbery26-Feb-07 9:08
Mark Salsbery26-Feb-07 9:08 
GeneralRe: Handle Reuse Problems? Pin
V3RO26-Feb-07 9:15
V3RO26-Feb-07 9:15 
GeneralRe: Handle Reuse Problems? Pin
V3RO26-Feb-07 9:45
V3RO26-Feb-07 9:45 
GeneralRe: Handle Reuse Problems? Pin
Mark Salsbery26-Feb-07 10:16
Mark Salsbery26-Feb-07 10:16 
That was really a lucky guess.

I just think it's a good idea to free objects in reverse order of creation when one of the
objects depends on the other for its creation (ie InternetConnect needs a handle from
InternetOpen). Especially with "handles", with which there's no way of knowing what goes on
behind the scenes in a seemingly simple "CloseHandle" call.

Setting to NULL is just generally considered good form (unnecessary in destructors for member
variables) and more importantly, it makes it easier to debug - NULL values are easily spotted
while debugging, invalid handle values are extremely hard to spot Smile | :)

I'm glad it worked for you!

Cheers,
Mark


"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")

QuestionAccessing DLL Pin
vinith26-Feb-07 7:28
vinith26-Feb-07 7:28 
AnswerRe: Accessing DLL Pin
Mark Salsbery26-Feb-07 7:41
Mark Salsbery26-Feb-07 7:41 
GeneralRe: Accessing DLL Pin
vinith26-Feb-07 23:03
vinith26-Feb-07 23:03 
QuestionRe: Accessing DLL Pin
prasad_som26-Feb-07 19:48
prasad_som26-Feb-07 19:48 
QuestionMS Access Pin
shiraztk26-Feb-07 6:32
shiraztk26-Feb-07 6:32 
QuestionRe: MS Access Pin
David Crow26-Feb-07 9:04
David Crow26-Feb-07 9:04 
QuestionWhite space increased and one reference number jumped in simple console application Pin
Software_Specialist26-Feb-07 4:31
Software_Specialist26-Feb-07 4:31 
QuestionRe: White space increased and one reference number jumped in simple console application Pin
Newbie0026-Feb-07 6:24
Newbie0026-Feb-07 6:24 
AnswerRe: White space increased and one reference number jumped in simple console application Pin
Software_Specialist27-Feb-07 9:38
Software_Specialist27-Feb-07 9:38 
GeneralRe: White space increased and one reference number jumped in simple console application Pin
Newbie0028-Feb-07 3:28
Newbie0028-Feb-07 3:28 
QuestionMS Access ActiveX VC++ Pin
shiraztk26-Feb-07 3:58
shiraztk26-Feb-07 3:58 
AnswerRe: MS Access ActiveX VC++ Pin
James R. Twine26-Feb-07 4:16
James R. Twine26-Feb-07 4:16 
GeneralRe: MS Access ActiveX VC++ Pin
shiraztk26-Feb-07 4:35
shiraztk26-Feb-07 4:35 
QuestionVisual Studio Just-In-Time Debugger Pin
Try26-Feb-07 3:12
Try26-Feb-07 3:12 
AnswerRe: Visual Studio Just-In-Time Debugger Pin
James R. Twine26-Feb-07 3:18
James R. Twine26-Feb-07 3:18 
AnswerRe: Visual Studio Just-In-Time Debugger Pin
Cedric Moonen26-Feb-07 3:19
Cedric Moonen26-Feb-07 3:19 
GeneralRe: Visual Studio Just-In-Time Debugger Pin
Try26-Feb-07 3:26
Try26-Feb-07 3:26 

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.