Re: Want to solve: Warning: Creating a pane with no CDocument
- From: Eric Lilja <mindcoolerremoveme@xxxxxxxxx>
- Date: Sat, 19 May 2007 01:13:40 +0200
Scott McPhillips [MVP] wrote:
Eric Lilja wrote:AliR (VC++ MVP) wrote:
Typcially the frame gets created automatically during the call ProcessShellCommand, when it calls CWinApp::OnFileNew
AliR.
If I remove my implementation of LoadFrame() and my Create() call I get:
Warning: failed to load menu for CFrameWnd.
Warning: CDocTemplate couldn't create a frame.
And then the program exits...
Well, that's a natural result of having no resources. You are fighting MFC, which gives you the doc/frame/view creation for free. Start over with an unmodified project. Then, if there's some customization you need ask how to do it without screwing everything up :)
I will, thanks for trying to help (you and AliR). What I did was taking the source of a program written five years ago and adding them to an empty project. I will start again. The program appeared to work just fine, however, I just get annoyed at warnings. :)
.
- Follow-Ups:
- References:
- Want to solve: Warning: Creating a pane with no CDocument
- From: Eric Lilja
- Re: Want to solve: Warning: Creating a pane with no CDocument
- From: Scott McPhillips [MVP]
- Re: Want to solve: Warning: Creating a pane with no CDocument
- From: Eric Lilja
- Re: Want to solve: Warning: Creating a pane with no CDocument
- From: AliR \(VC++ MVP\)
- Re: Want to solve: Warning: Creating a pane with no CDocument
- From: Eric Lilja
- Re: Want to solve: Warning: Creating a pane with no CDocument
- From: Scott McPhillips [MVP]
- Want to solve: Warning: Creating a pane with no CDocument
- Prev by Date: Re: CDC:TextOut and Plus or Minus Sign
- Next by Date: Re: hide taskbar after SwitchToThisWindow
- Previous by thread: Re: Want to solve: Warning: Creating a pane with no CDocument
- Next by thread: Re: Want to solve: Warning: Creating a pane with no CDocument
- Index(es):
Relevant Pages
|