Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcallback function s-- Pin
ns10-Nov-03 8:29
ns10-Nov-03 8:29 
GeneralRe: callback function s-- Pin
Ravi Bhavnani10-Nov-03 8:47
professionalRavi Bhavnani10-Nov-03 8:47 
GeneralRe: callback function s-- Pin
ns10-Nov-03 9:08
ns10-Nov-03 9:08 
GeneralRe: callback function s-- Pin
David Crow10-Nov-03 9:01
David Crow10-Nov-03 9:01 
GeneralRe: callback function s-- Pin
ns10-Nov-03 9:07
ns10-Nov-03 9:07 
QuestionHow to change color into Excel Pin
jerome_data10-Nov-03 8:16
jerome_data10-Nov-03 8:16 
AnswerRe: How to change color into Excel Pin
Peter Molnar10-Nov-03 14:25
Peter Molnar10-Nov-03 14:25 
GeneralA pointer to a closed window Pin
Shay Harel10-Nov-03 7:39
Shay Harel10-Nov-03 7:39 
Hi,

I pop up a window with my application, using:
<br />
<br />
//pTaskViewSplitFrame is a member variable of type CTaskViewSplitFrame *;<br />
<br />
CRuntimeClass* pRuntimeClass = RUNTIME_CLASS( CTaskViewSplitFrame );<br />
CObject* pObject = pRuntimeClass->CreateObject();<br />
pTaskViewSplitFrame = (CTaskViewSplitFrame *)(pObject);<br />
pTaskViewSplitFrame->LoadFrame(IDR_TASK_VIEW_SPLIT_FRAME,WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, pParent,NULL);<br />
pTaskViewSplitFrame->ShowWindow(SW_SHOWNORMAL);<br />


Everything works fine but if at the end of my application I want to close this window I will probably use delete or pTaskViewSplitFrame->CloseWindow and the window is already closed by the user I will get an exception.

The problem is that the pointer is not really NULL but 0xdddd or something like that so I can't verify it...

Any solution ?

Shay
GeneralRe: A pointer to a closed window Pin
Nitron10-Nov-03 8:04
Nitron10-Nov-03 8:04 
GeneralRe: A pointer to a closed window Pin
Shay Harel10-Nov-03 8:07
Shay Harel10-Nov-03 8:07 
GeneralRe: A pointer to a closed window Pin
David Crow10-Nov-03 9:12
David Crow10-Nov-03 9:12 
GeneralRe: A pointer to a closed window Pin
Shay Harel10-Nov-03 9:26
Shay Harel10-Nov-03 9:26 
GeneralRe: A pointer to a closed window Pin
Shay Harel10-Nov-03 9:43
Shay Harel10-Nov-03 9:43 
GeneralRe: A pointer to a closed window Pin
David Crow10-Nov-03 8:58
David Crow10-Nov-03 8:58 
GeneralRe: A pointer to a closed window Pin
Shay Harel10-Nov-03 9:04
Shay Harel10-Nov-03 9:04 
GeneralRe: A pointer to a closed window Pin
Antti Keskinen11-Nov-03 0:43
Antti Keskinen11-Nov-03 0:43 
GeneralRe: A pointer to a closed window Pin
Shay Harel11-Nov-03 3:21
Shay Harel11-Nov-03 3:21 
QuestionHow to use a region Pin
Eugene Pustovoyt10-Nov-03 7:29
Eugene Pustovoyt10-Nov-03 7:29 
AnswerRe: How to use a region Pin
JWood10-Nov-03 16:01
JWood10-Nov-03 16:01 
Generalusing messagebox.... Pin
Member 210374010-Nov-03 7:05
Member 210374010-Nov-03 7:05 
GeneralRe: using messagebox.... Pin
jmkhael10-Nov-03 7:14
jmkhael10-Nov-03 7:14 
GeneralRe: using messagebox.... Pin
ricolee0310-Nov-03 7:18
ricolee0310-Nov-03 7:18 
GeneralRe: using messagebox.... Pin
jmkhael10-Nov-03 7:23
jmkhael10-Nov-03 7:23 
GeneralRe: using messagebox.... Pin
ricolee0010-Nov-03 7:32
ricolee0010-Nov-03 7:32 
GeneralRe: using messagebox.... Pin
jmkhael10-Nov-03 7:34
jmkhael10-Nov-03 7:34 

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.