Do programming Windows with MFC 2nd example when MyWord. Always error when discovering boot: Fail to create empty document.
Searched for a bit.
Reference: http://bbs.csdn.net/topics/60364077
Jiangsheng reply to: 2004-11-06 05:46:36
Failed to create an empty document while the Debug Output window should have more detailed error reporting
To look at it:
The clues, originally is the RC file problem. Follow-up supplement
----------------------
is because the RC file added TOOL BAR when the problem. Copy the Stylebar.bmp and toolbar.bmp to the Res folder of your project. Edit the code of the RC file directly. Do not use Resource Editor (do not know what the problem, the use of this add TOOL BAR is always a problem).
Add the following highlighted code:
//////////////////////////////////////////////////////////////////////////// Bitmap//idr_mainframe Bitmap "res\\toolbar.bmp" idr_style_ba R BITMAP "Res\\stylebar.bmp" //////////////////////////////////////////////////////////// Toolbar//idr_mainframe Toolbar, 15BEGIN button id_file_new button Id_file_open Button id_file_save SEPARATOR button id_edit_cut button id_edit_copy button id_edit_paste SEPARATOR button Id_edit_undoendidr_style_bar TOOLBAR 15BEGIN, button Id_char_bold button id_char_italic button id_char_underline SEPARATOR button Id_para_left B Utton id_para_center button id_para_right SEPARATOR button id_dummy1 SEPARATOR button I D_dummy2end
Resolution: Fail To create empty document