Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to create the icon first. Then you need to create a RC file that looks something like this:</p> <pre><code>id ICON "path/to/my.ico" </code></pre> <p>The ID can pretty much anything. It doesn't matter unless you want to refer to it in your code. Then run windres as follows:</p> <pre><code>windres my.rc -O coff -o my.res </code></pre> <p>Then you just include my.res along with your object files when you link, e.g.:</p> <pre><code>g++ -o my_app obj1.o obj2.o my.res </code></pre> <p>And that should be all there is to it.</p> <hr> <p>And, at no extra charge, if you want to include version information in your application, add the following boilerplate to your <code>.rc</code> file and modify appropriately:</p> <pre><code>1 VERSIONINFO FILEVERSION 1,0,0,0 PRODUCTVERSION 1,0,0,0 BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "080904E4" BEGIN VALUE "CompanyName", "My Company Name" VALUE "FileDescription", "My excellent application" VALUE "FileVersion", "1.0" VALUE "InternalName", "my_app" VALUE "LegalCopyright", "My Name" VALUE "OriginalFilename", "my_app.exe" VALUE "ProductName", "My App" VALUE "ProductVersion", "1.0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x809, 1252 END END </code></pre> <p>Note, the langID is for U.K. English (which is the closest localisation to Australia I could identify.) If you want U.S. "English" then change the <code>BLOCK</code> line to:</p> <pre><code>BLOCK "040904E4" </code></pre> <p>and the translation line to:</p> <pre><code>VALUE "Translation", 0x409, 1252 </code></pre> <p>See <a href="//msdn.microsoft.com/library/aa381058" rel="noreferrer">VERSIONINFO resource</a> for for info.</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. 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.
 

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