Duplicate TEXTINCLUDE sections in .rc file

In my .rc file, I found that I have three TEXTINCLUDE sections repeating twice with different content. When I open "Resource Includes", only the inbox from the first three sections is displayed. I changed .rc long ago, so maybe this is not the case.

Is it safe to delete the second 3 partitions?

I inserted this from my .rc file, you can see how the TEXTINCLUDE sections are repeated (ie "3 TEXTINCLUDE" is followed by "1 TEXTINCLUDE".

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "#include ""res/Pngs.h""\r\n"
    "#include ""res/PngsNag.h""\0"
END

3 TEXTINCLUDE 
BEGIN
    "#include ""afxres.rc""      // Standard components\r\n"
    "#include ""res/MyProject.rc2""\r\n"
    "#include ""res/Pngs.rc2""\r\n"
    "#include ""res/PngsNag.rc2""\0"
END

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\MyProject.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "\0"
END
+5
source share
2 answers

gunk, , Visual Studio. , . , . , .

MSDN:

, Visual ++ .RC. Visual ++, , Set Includes.

Set Includes .RC : (1) #include , , (2) TEXTINCLUDE, Visual ++.

TEXTINCLUDE , Include , ​​ Visual ++ Set Includes. TEXTINCLUDE - , Visual ++. Visual ++ TEXTINCLUDE, 1, 2 3:

TEXTINCLUDE resource ID     Type of Set Includes information
        1                   Symbol Header File
        2                   Read-Only Symbol Directives
        3                   Compile-Time Directives
+6

TEXTINCLUDE. , .

+1

All Articles