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



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: Want to solve: Warning: Creating a pane with no CDocument
    ... ProcessShellCommand, when it calls CWinApp::OnFileNew ... If I remove my implementation of LoadFrame() and my Createcall I get: ... failed to load menu for CFrameWnd. ... Warning: ...
    (microsoft.public.vc.mfc)
  • Re: DBD::Oracle 1.19 install on Fedora Core 5
    ... Looks like Oracle XE ... dbdimp.c:1110: warning: value computed is not used ... install_driverfailed: Can't load ... Failed 2/5 tests, 60.00% okay ...
    (perl.dbi.users)
  • clsql/uffi/cmucl and netbsd, has anyone got it to work?
    ... Gray Streams Protocol Support ... ; Byte Compiling Top-Level Form: ... Warning: ... Couldn't load foreign libraries "clsql_uffi", ...
    (comp.lang.lisp)
  • debian 2.4.18 fatal oopses (hardware related?)
    ... I have K6-2 based machine using an obscure motherboard which has been ... attached a sample oops and its ksymoops output. ... Warning: object ... ide-probe-mod has changed since load ...
    (Linux-Kernel)
  • Re: Low battery voltage level
    ... a warning should ... the battery, about 13.5 volts with a steady yellow light, ... but I'd want to have a flashing red if the voltage was below ... I like the airplane to have a volt meter and a load meter. ...
    (rec.aviation.ifr)