public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Michael Foo" <fsh@jhancock.com.my>
To: gcc-help@gcc.gnu.org
Subject: About windres....
Date: Thu, 10 Oct 2002 19:53:00 -0000	[thread overview]
Message-ID: <2CF0EAB7086@jhancock.com.my> (raw)

Hi,

I create the following .rc file:
#include <winver.h>
#include <windows.h>

2 ICON "icons/Ampempty.ico"

1 VERSIONINFO
FILEVERSION 1,1,0,0
PRODUCTVERSION 1,0,0,0
FILEOS VOS__WINDOWS32
{
  BLOCK "StringFileInfo"{
    BLOCK "0x0409"{
      VALUE "Comment", "This is testing program"
      VALUE "CompanyName","Imaginary Company"
      VALUE "FileDescription", "Experiment program"
      VALUE "FileVersion", "Build Ver1.0"
      VALUE "LegalCopyright","Copyright© foo"
      VALUE "OriginalFilename","foo.exe"
      VALUE "ProductName", "FOO"
      VALUE "ProductVersion", "P2D2"
    }
  }
}

I used windres to compile this script:
windres foo.rc -O coff -o foo.res

Then I compile my c source(foo.c) :
gcc -mwindows foo.res -mno-cygwin -o epos.exe md5.o foo.c

However, I only see the icon to my executable. But when I right-
clicked to view the property of the executable. Under the Version
tab of the Property, I see no info printed and totally blank. Why is it
so? Is it my .rc file wrong or my compilation is not linking to the res
file?

   Thank you in advance. :)

Regards
Michael

             reply	other threads:[~2002-10-11  2:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10 19:53 Michael Foo [this message]
2002-10-10 19:56 Michael Foo
2002-10-10 21:04 about windres Michael Foo
2002-10-10 22:45 Michael Foo
     [not found] <616BE6A276E3714788D2AC35C40CD18D86F6EF@whale.softwire.co.uk>
2002-10-11  1:57 ` Rupert Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2CF0EAB7086@jhancock.com.my \
    --to=fsh@jhancock.com.my \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).