Re: Want to solve: Warning: Creating a pane with no CDocument



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. :)


.



Relevant Pages

  • Re: perl warnings
    ... The first time it runs, parameter 'action' isn't defined so that is ... print "\$action is empty"; ... Use of uninitialized value in string eq at -e line 7. ... )' but that still produces a warning. ...
    (perl.beginners)
  • Use of uninitialized value in print
    ... print "Now will format .xls file\n"; ... #Holding Variables for mailing list ... After this I get warning talking about use of uninitialized value and ... but print statement is empty ...
    (comp.lang.perl.misc)
  • Print Spooler will not Start
    ... After taking one day off I came back to printing problems. ... My Printers list is now empty. ... Warning - SceCli, ...
    (microsoft.public.win2000.printing)
  • Re: How do I suppress table empty warnings
    ... > results of the query on update are empty I get a corresponding warning. ... reply in the newsgroup and not by e-mail :-) ...
    (microsoft.public.word.tables)
  • Re: Apple Mail delete confirmation
    ... >> any way of doing away with this warning. ... It is only a minor irritation, ... Same for me and I have it set to empty the trash after seven days. ...
    (comp.sys.mac.system)