Click here to Skip to main content
16,005,437 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnIdle() not getting focus Pin
rp_suman26-Jul-07 18:44
rp_suman26-Jul-07 18:44 
GeneralRe: OnIdle() not getting focus Pin
rp_suman19-Jul-07 22:46
rp_suman19-Jul-07 22:46 
GeneralRe: OnIdle() not getting focus Pin
Mark Salsbery20-Jul-07 5:08
Mark Salsbery20-Jul-07 5:08 
GeneralRe: OnIdle() not getting focus Pin
rp_suman22-Jul-07 18:48
rp_suman22-Jul-07 18:48 
QuestionChecking a valid pointer Pin
Electronic7518-Jul-07 21:37
Electronic7518-Jul-07 21:37 
AnswerRe: Checking a valid pointer Pin
James R. Twine19-Jul-07 1:01
James R. Twine19-Jul-07 1:01 
QuestionRe: Checking a valid pointer Pin
David Crow19-Jul-07 2:53
David Crow19-Jul-07 2:53 
AnswerRe: Checking a valid pointer Pin
Mike Dimmick19-Jul-07 3:04
Mike Dimmick19-Jul-07 3:04 
AfxIsValidAddress in VS6 calls IsBadReadPtr or IsBadWritePtr depending on whether bReadWrite is FALSE or TRUE respectively. However, it's been discovered in the last few years that these APIs are seriously flawed. See IsBadXxxPtr should really be called CrashProgramRandomly[^] for details.

Visual Studio .NET 2003 still calls IsBadXxxPtr in Debug builds, but in Release builds only checks for NULL. In Visual Studio 2005, the IsBadXxxPtr checks are completely removed, the function only checks for NULL.

It does look like you've called through a bad pointer - this could well mean that the virtual function pointer inside CMyData is NULL, which it will be if you used memset, for example.

Stability. What an interesting concept. -- Chris Maunder

AnswerRe: Checking a valid pointer Pin
DevMentor.org19-Jul-07 11:22
DevMentor.org19-Jul-07 11:22 
QuestionUsing ADODC.. Pin
indray2j18-Jul-07 21:32
indray2j18-Jul-07 21:32 
AnswerRe: Using ADODC.. Pin
Karismatic19-Jul-07 0:42
Karismatic19-Jul-07 0:42 
Questionhelp me in removing these warnings Pin
neha.agarwal2718-Jul-07 21:31
neha.agarwal2718-Jul-07 21:31 
AnswerRe: help me in removing these warnings Pin
CPallini18-Jul-07 21:51
mveCPallini18-Jul-07 21:51 
GeneralRe: help me in removing these warnings Pin
rp_suman18-Jul-07 21:59
rp_suman18-Jul-07 21:59 
GeneralRe: help me in removing these warnings Pin
CPallini18-Jul-07 22:10
mveCPallini18-Jul-07 22:10 
GeneralRe: help me in removing these warnings Pin
neha.agarwal2718-Jul-07 22:28
neha.agarwal2718-Jul-07 22:28 
GeneralRe: help me in removing these warnings Pin
CPallini18-Jul-07 22:38
mveCPallini18-Jul-07 22:38 
GeneralRe: help me in removing these warnings Pin
neha.agarwal2718-Jul-07 23:07
neha.agarwal2718-Jul-07 23:07 
GeneralRe: help me in removing these warnings Pin
CPallini18-Jul-07 23:22
mveCPallini18-Jul-07 23:22 
GeneralRe: help me in removing these warnings Pin
neha.agarwal2719-Jul-07 0:34
neha.agarwal2719-Jul-07 0:34 
GeneralRe: help me in removing these warnings Pin
rp_suman18-Jul-07 22:51
rp_suman18-Jul-07 22:51 
GeneralRe: help me in removing these warnings Pin
CPallini18-Jul-07 22:55
mveCPallini18-Jul-07 22:55 
GeneralRe: help me in removing these warnings Pin
jhwurmbach19-Jul-07 2:53
jhwurmbach19-Jul-07 2:53 
GeneralRe: help me in removing these warnings Pin
rp_suman19-Jul-07 17:53
rp_suman19-Jul-07 17:53 
QuestionMFC/Win32 Printing - setting page/paper size ? Pin
ana_v12318-Jul-07 21:18
ana_v12318-Jul-07 21:18 

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.