Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is the way to do it via Visual Studio 2012 (C++, IDE). Firstly, it seems that all the files (<code>app.rc</code>, <code>version.rc2</code> with the version section to be included into <code>app.rc</code>, <em>and also the <code>version.inc</code></em> with the values maintained separately [included into <code>version.rc2</code>]) <em>must be stored in UTF-16</em> -- unlike in the earlier versions of Visual Studio. Then I was able to repeat the same approach also in Visual Studio 2012. </p> <p>However, you do not need to edit the <code>app.rc</code> file manually. You can use the following steps using the IDE:</p> <ul> <li>Open the project (<code>App</code>) and switch to the <em>Resource View</em> tab.</li> <li>Unfold the <code>App</code> project, unfold its <code>app.rc</code>, and unfold the <code>Version</code> folder. You can see the <code>VS_VERSION_INFO</code> item.</li> <li>Mark the <code>VS_VERSION_INFO</code> item and pres Delete key on the keyboard. The item and its upper <code>Version</code> folder disappear.</li> <li>Mouse right-click the <code>app.rc</code> folder, and select the <em>Resource Includes...</em>. The dialog with the same name and with three input panes appear.</li> </ul> <p><img src="https://i.stack.imgur.com/UNYKp.png" alt="Resourde Includes dialog"></p> <ul> <li>Focus on the bottom pane named <em>Compile-time directives:</em>, and write the <code>#include "version.rc2"</code> there. (The file must not have the <code>.rc</code> extension, but the <code>.rc2</code> is fine and recommended elsewhere in the MSDN doc.)</li> <li>Press <em>OK</em>, and save all files (to save also the modified <code>app.rc</code>).</li> </ul> <p>The result of the steps is that you will not see the <code>Version</code> folder and the <code>VS_VERSION_INFO</code> item in the resource tree (see <em>Resource View</em> tab); however, the above mentioned constructed <code>Version</code> section (stored inside the <code>version.rc2</code>) is compiled into the application resources.</p> <p>Technically, the following parts of the <code>app.rc</code> file can be found after the steps:</p> <pre><code>3 TEXTINCLUDE BEGIN "#include ""version.rc2""\r\n" "\0" END </code></pre> <p>...</p> <pre><code>#ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // #include "version.rc2" ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED </code></pre> <p>Any constructive comments to enhance the topic are welcome and will be +1-ed :)</p> <p>Have a nice time,</p> <p>Petr</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload