Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 1-Sep-10 1:10am
v2
Comments
LittleYellowBird 1-Sep-10 7:08am    
Hi, you need to provide more information about your problem, for instance what error is it giving? Try to single step through and find out which part of the code is causing the problem and them you can provide a code snippet. It is impossible for anyone to help if you do not provide enough information. Just a few suggestions. :)

1 solution

Just set a break point at CDocument* CDocTemplate::CreateNewDocument()
and then step it through (it should not return NULL) :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900