adding item to resource view (C++)

Rudolf Meier 271 Reputation points
2022-03-29T21:09:28.68+00:00

Is it possible to add an item to the resource view window? Currently I see all my projects there with 0 or 1 .rc file... but, I was wondering, if it is possible to build an extension that adds an other file time to there (e.g. .myrc).

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,323 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Minxin Yu 8,186 Reputation points Microsoft Vendor
    2022-03-30T07:23:16.383+00:00

    Hi, @Rudolf Meier

    .rc file is automatically built by Visual Studio. And the .rc2 file is used to store the resources used by multiple different projects.
    For your reference: .rc2 file in VS

    PROJNAME.RC2

    The RC2 file can be included at the top of the RC file in a project. An RC2 file is useful for including resources used by several different projects. Instead of having to create the same resources several times for different projects, you can put them in an RC2 file and include the RC2 file into the main RC file.

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. RLWA32 37,121 Reputation points
    2022-03-30T07:31:30.227+00:00

    Resource files with an .rc2 extension are most often seen in MFC projects. They are used to contain resources that are not intended to be edited or viewed in the Visual Studio resource editor to protect them from being inadvertently changed. Refer to tn035-using-multiple-resource-files-and-header-files-with-visual-cpp and note the guidance in the section "Enforcement of Noneditable Visual C++ Files".