Fatal error rc1121: RC: Fatal error rc1121: I/O Error reading file

Source: Internet
Author: User

// The above is a reference to someone else's blog http://zhongliyuan88.blog.163.com/blog/static/7937881920094229051457/

Note: several files must be replaced and replaced several times. The most important thing is to edit and save the files in a text editor, reload the files to the project, save the files, and turn them off, re-open the file and modify the replacement of another file.


In the DirectShow network example, no changes were made, but a serious error occurred. solution:

Compilation error prompt:

C: \ dxsdk \ samples \ c ++ \ DirectShow \ filters \ dsnetwork \ filter \.. \ sender \ propsend. RC (24): Fatal error rc1121: RC: Fatal error rc1121: I/O Error reading file
An error occurred while executing rc.exe.

No problem found. Finally, I found that the problem was about multi-language conversion. The original program was in English, and this problem exists in the Chinese version. In Microsoft Windows, the language is identified by code pages, and different languages are represented by different code pages. For example, "simplified Chinese" is represented by code page 936, in contrast, "American English" is displayed in the code page 1252. Other languages are not mentioned.

Solution: Change the English version to the Chinese version.

Open the project resource file with a text document (note that it must be a text document !)

Find the following code:

// English (U. S.) Resources
# If! Defined (afx_resource_dll) | defined (afx_targ_enu)
# Ifdef _ Win32
Language lang_english, sublang_english_us
# Pragma code_page (1252)
# Endif // _ Win32

Replacement:
// Chinese (P. R. C.) Resources

# If! Defined (afx_resource_dll) | defined (afx_targ_chs)
# Ifdef _ Win32
Language lang_chinese, sublang_chinese_simplified
# Pragma code_page (936)
# Endif // _ Win32

Re-open the project file and compile it !!

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.