* about windres
@ 2002-10-10 21:04 Michael Foo
0 siblings, 0 replies; 5+ messages in thread
From: Michael Foo @ 2002-10-10 21:04 UTC (permalink / raw)
To: gcc-help
Hi,
I create the following .rc file:
#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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: about windres
[not found] <616BE6A276E3714788D2AC35C40CD18D86F6EF@whale.softwire.co.uk>
@ 2002-10-11 1:57 ` Rupert Wood
0 siblings, 0 replies; 5+ messages in thread
From: Rupert Wood @ 2002-10-11 1:57 UTC (permalink / raw)
To: 'Michael Foo'; +Cc: gcc-help
Michael Foo wrote:
> BLOCK "0x0409"{
:
> 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.
You've confused the syntax of BLOCK: that should be
BLOCK "040904B0"
or similar: 0409 represents US English and 04B0 is 1200 decimal for
Unicode character set (default for Win32 resources).
For reference/comparison, here's a (US English) VS_VERSION_INFO block
autogenerated by MSVC6. It's not obvious to me why they've explicitly
null-terminated every string but all the .rc files I've seen do it.
#ifndef _MAC
/////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "\0"
VALUE "FileDescription", "Test MFC Application\0"
VALUE "FileVersion", "1, 0, 0, 1\0"
VALUE "InternalName", "Test\0"
VALUE "LegalCopyright", "Copyright (C) 2002\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "Test.EXE\0"
VALUE "ProductName", "Test Application\0"
VALUE "ProductVersion", "1, 0, 0, 1\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
#endif // !_MAC
^ permalink raw reply [flat|nested] 5+ messages in thread
* about windres
@ 2002-10-10 22:45 Michael Foo
0 siblings, 0 replies; 5+ messages in thread
From: Michael Foo @ 2002-10-10 22:45 UTC (permalink / raw)
To: gcc-help
Hi,
I create the following .rc:
#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 -s -mwindows foo.res md5.o foo.c -mno-cygwin -e
_mainCRTStartup -o epos.exe
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* About windres.....
@ 2002-10-10 19:56 Michael Foo
0 siblings, 0 replies; 5+ messages in thread
From: Michael Foo @ 2002-10-10 19:56 UTC (permalink / raw)
To: gcc-help
Hi,
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* About windres....
@ 2002-10-10 19:53 Michael Foo
0 siblings, 0 replies; 5+ messages in thread
From: Michael Foo @ 2002-10-10 19:53 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-10-11 8:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-10 21:04 about windres Michael Foo
[not found] <616BE6A276E3714788D2AC35C40CD18D86F6EF@whale.softwire.co.uk>
2002-10-11 1:57 ` Rupert Wood
-- strict thread matches above, loose matches on Subject: below --
2002-10-10 22:45 Michael Foo
2002-10-10 19:56 About windres Michael Foo
2002-10-10 19:53 Michael Foo
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).