Resolution: Fail To create empty document

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.