Win Mobile中的MFC应用程序

问题描述:



我在MFC中为Win Mobile 5创建了一个应用程序.当我第一次运行它时,它给我一个错误无法创建空文档",但是再次运行它就可以正常工作.之前不存在此错误.

我为我的应用程序创建了一些对话框,然后在启动时出现错误.

任何帮助将不胜感激.

Hi,

I created an application in MFC for Win Mobile 5. When I ran it the first time it gave me an error "failed to create empty document", but on running it again it worked fine. This error was not present earlier.

I created some dialogs for my application and after that it gave an error on startup.

Any help would be appreciated.

只需在CDocument* CDocTemplate::CreateNewDocument()
上设置一个断点 然后逐步执行(不应返回NULL):)
Just set a break point at CDocument* CDocTemplate::CreateNewDocument()
and then step it through (it should not return NULL) :)