Re: Want to solve: Warning: Creating a pane with no CDocument
- From: "Victor" <nijegorodov.otpusk@xxxxxxxxxx>
- Date: Sat, 19 May 2007 21:10:35 +0200
Don't start with "empty project"!
As Scott mentioned, create a new MFC SDI project with the "Windows Explorer"
style (in this case you will get splitter views from Microsoft, then
change/add what you need using your "old code".
Victor
"Eric Lilja" <mindcoolerremoveme@xxxxxxxxx> wrote in message
news:OZ0PrIamHHA.4772@xxxxxxxxxxxxxxxxxxxxxxx
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. :)
.
- 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]
- Re: Want to solve: Warning: Creating a pane with no CDocument
- From: Eric Lilja
- Want to solve: Warning: Creating a pane with no CDocument
- Prev by Date: Re: VS 2005 hangs on launch
- Next by Date: Re: CView::OnCtlColor to change font on a single CStatic
- Previous by thread: Re: Want to solve: Warning: Creating a pane with no CDocument
- Next by thread: Off Topic: Install\Uninstall Problem concerning a MFC Application
- Index(es):
Relevant Pages
|