// 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 !!