Click here to Skip to main content
15,923,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Developing Custom Exception Handler :: C++ Pin
Joaquín M López Muñoz19-Feb-02 20:53
Joaquín M López Muñoz19-Feb-02 20:53 
GeneralRe: Developing Custom Exception Handler :: C++ Pin
valikac20-Feb-02 4:11
valikac20-Feb-02 4:11 
GeneralCFile::Duplicate Pin
Le centriste19-Feb-02 14:43
Le centriste19-Feb-02 14:43 
GeneralRe: CFile::Duplicate Pin
Nish Nishant19-Feb-02 15:53
sitebuilderNish Nishant19-Feb-02 15:53 
GeneralAppWizard Pin
blink4me19-Feb-02 13:50
blink4me19-Feb-02 13:50 
GeneralRe: AppWizard Pin
Matt Newman19-Feb-02 15:24
Matt Newman19-Feb-02 15:24 
GeneralActiveX "shim" for a Netscape plugin Pin
David Ness19-Feb-02 11:16
David Ness19-Feb-02 11:16 
GeneralCWnd dynamic creation and deletion problem Pin
yellowine19-Feb-02 10:45
yellowine19-Feb-02 10:45 
I want to create, show, and delete various CWnd or CWnd derived Windows:
<br />
void MyFoo(CRuntimeClass *pWndClass,...)<br />
{<br />
<br />
  CWnd* pWnd = pWndClass->CreateObject();<br />
  pWnd->Create(..);   // Create the Window associated with pWnd;<br />
                      // The actual Create will be based on the type of Window<br />
  ...<br />
  pWnd->ShowWindow(SW_SHOW);<br />
  ...<br />
  pWnd->DestroyWindow();   //Destroy the Window<br />
  delete (pWnd)            // Delete the CWnd or CWnd derived object<br />
}<br />

pWnd can be any type of windows (e.r., CDialog, CFormView, CView,...). The problem is: if pWnd is a dialog or CDialog-derived object, it works ok. But if pWnd is derived from CView or CWnd but not from CDialog, the delete statement in the above function doesn't work with an error message as access denied (0xc0000005). So why doing that?


//
GeneralRe: CWnd dynamic creation and deletion problem Pin
Nish Nishant19-Feb-02 15:56
sitebuilderNish Nishant19-Feb-02 15:56 
GeneralRe: CWnd dynamic creation and deletion problem Pin
yellowine20-Feb-02 4:22
yellowine20-Feb-02 4:22 
Generalchanging CView styles Pin
19-Feb-02 10:45
suss19-Feb-02 10:45 
GeneralRe: changing CView styles Pin
Joaquín M López Muñoz19-Feb-02 10:58
Joaquín M López Muñoz19-Feb-02 10:58 
GeneralRe: changing CView styles Pin
19-Feb-02 11:32
suss19-Feb-02 11:32 
GeneralAn icon recieving a file Pin
Optic19-Feb-02 10:10
Optic19-Feb-02 10:10 
GeneralA bit miffed about the doc/view architecture... Pin
funbag19-Feb-02 10:10
funbag19-Feb-02 10:10 
GeneralRe: A bit miffed about the doc/view architecture... Pin
Michael P Butler19-Feb-02 10:33
Michael P Butler19-Feb-02 10:33 
QuestionLoading a resource bitmap in GDI+ ? Pin
19-Feb-02 9:40
suss19-Feb-02 9:40 
AnswerRe: Loading a resource bitmap in GDI+ ? Pin
Jay Beckert19-Feb-02 10:24
Jay Beckert19-Feb-02 10:24 
GeneralRe: Loading a resource bitmap in GDI+ ? Pin
19-Feb-02 11:59
suss19-Feb-02 11:59 
GeneralRe: Loading a resource bitmap in GDI+ ? Pin
Jay Beckert19-Feb-02 17:02
Jay Beckert19-Feb-02 17:02 
GeneralRe: Loading a resource bitmap in GDI+ ? Pin
20-Feb-02 1:02
suss20-Feb-02 1:02 
GeneralRe: Loading a resource bitmap in GDI+ ? Pin
20-Feb-02 6:15
suss20-Feb-02 6:15 
Questionstring help whats wrong with this code? Pin
Steven Richardson19-Feb-02 8:12
Steven Richardson19-Feb-02 8:12 
AnswerRe: string help whats wrong with this code? Pin
Nish Nishant19-Feb-02 8:24
sitebuilderNish Nishant19-Feb-02 8:24 
GeneralRe: string help whats wrong with this code? Pin
Steven Richardson19-Feb-02 8:28
Steven Richardson19-Feb-02 8:28 

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.