
Empty document, help me please
Beny,
I am assuming here that your app is a normal MFC document/view application.
If so, check out the call to ProcessShellCommand in your application's
InitInstance function. Anything which causes this function to fail will
resuly in the error you are reporting. It could be anything which causes the
document, view, or frame window creation to fail. I first saw this error
when adding new panes to the status bar. If you forget to add a string
resource to set the width of the pane, creation of the frame window fails
and the application shuts down with this same error.
Dave Smith
MCSE, MCT, MVP
Quote:
>Hi all,
> I was preparing my project, everything was okay.
> But ...It seems to be that I modified something,
> compiled it without errors and try to run it. Just
> here is my problem. Now the project does not run and
> I always get the following error:
> "Failed to create empty document".
> What does this mean ????
> Any input for this poor programmer please ?
> Thanks a lot.
> Beny