Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Show color at pointer position... Pin
Richard Perrine8-Jan-09 6:46
Richard Perrine8-Jan-09 6:46 
QuestionInvoking a Web Service using Visual C++ .NET Pin
Thomas_Mathews8-Jan-09 1:40
Thomas_Mathews8-Jan-09 1:40 
AnswerRe: Invoking a Web Service using Visual C++ .NET Pin
Hamid_RT8-Jan-09 1:47
Hamid_RT8-Jan-09 1:47 
QuestionHow to create, fire and send event in Win32, c++ application Pin
Member 46202168-Jan-09 0:29
Member 46202168-Jan-09 0:29 
AnswerRe: How to create, fire and send event in Win32, c++ application Pin
Stuart Dootson8-Jan-09 2:11
professionalStuart Dootson8-Jan-09 2:11 
QuestionHow to check null or corrupted char pointer value Pin
KASR18-Jan-09 0:11
KASR18-Jan-09 0:11 
AnswerRe: How to check null or corrupted char pointer value Pin
Abhijit A8-Jan-09 0:34
Abhijit A8-Jan-09 0:34 
AnswerRe: How to check null or corrupted char pointer value [modified] Pin
CPallini8-Jan-09 0:38
mveCPallini8-Jan-09 0:38 
Simply put: you cannot. That's the reason to set pVar=NULL just before immediately after freeing its associated memory.
However it depends on your definition of 'bad pointer' (IMHO a variable wrongly pointing a valid memory area is also 'bad'...).
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

modified on Thursday, January 8, 2009 6:48 AM

GeneralRe: How to check null or corrupted char pointer value Pin
KASR18-Jan-09 0:47
KASR18-Jan-09 0:47 
GeneralRe: How to check null or corrupted char pointer value Pin
Cedric Moonen8-Jan-09 0:50
Cedric Moonen8-Jan-09 0:50 
GeneralRe: How to check null or corrupted char pointer value Pin
KASR18-Jan-09 1:02
KASR18-Jan-09 1:02 
GeneralRe: How to check null or corrupted char pointer value Pin
KASR18-Jan-09 1:27
KASR18-Jan-09 1:27 
GeneralRe: How to check null or corrupted char pointer value Pin
CPallini8-Jan-09 0:52
mveCPallini8-Jan-09 0:52 
GeneralRe: How to check null or corrupted char pointer value Pin
KASR18-Jan-09 0:58
KASR18-Jan-09 0:58 
GeneralRe: How to check null or corrupted char pointer value Pin
toxcct8-Jan-09 1:06
toxcct8-Jan-09 1:06 
GeneralRe: How to check null or corrupted char pointer value Pin
KASR18-Jan-09 1:14
KASR18-Jan-09 1:14 
GeneralRe: How to check null or corrupted char pointer value Pin
toxcct8-Jan-09 1:16
toxcct8-Jan-09 1:16 
GeneralRe: How to check null or corrupted char pointer value Pin
KASR18-Jan-09 1:25
KASR18-Jan-09 1:25 
GeneralRe: How to check null or corrupted char pointer value Pin
Randor 8-Jan-09 1:34
professional Randor 8-Jan-09 1:34 
GeneralRe: How to check null or corrupted char pointer value Pin
KASR18-Jan-09 1:59
KASR18-Jan-09 1:59 
GeneralRe: How to check null or corrupted char pointer value Pin
CPallini8-Jan-09 1:34
mveCPallini8-Jan-09 1:34 
GeneralRe: How to check null or corrupted char pointer value Pin
KASR18-Jan-09 1:41
KASR18-Jan-09 1:41 
GeneralRe: How to check null or corrupted char pointer value Pin
CPallini8-Jan-09 1:50
mveCPallini8-Jan-09 1:50 
GeneralRe: How to check null or corrupted char pointer value Pin
KASR18-Jan-09 1:57
KASR18-Jan-09 1:57 
GeneralRe: How to check null or corrupted char pointer value Pin
CPallini8-Jan-09 2:06
mveCPallini8-Jan-09 2:06 

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.