Properties of the generated .exe file

Issues and Discussions related to Harbour

Moderator: Rathinagiri

EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: Properties of the generated .exe file

Post by EduardoLuis »

Hola PabloCesar:

Excelente como siempre.- Muy buen aporte y gracias por compartirlo.-
Un Abrazo. Eduardo

Hi PabloCesar:

Excellent job has always.- Great contribution and thanks for share.-
With regards. Eduardo
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Properties of the generated .exe file

Post by Pablo César »

serge_girard wrote:Great ! This works fine, thank you all !

Serge
I'm glad to know that solved an important issue.
EduardoLuis wrote:Hola PabloCesar:

Excelente como siempre.- Muy buen aporte y gracias por compartirlo.-
Un Abrazo. Eduardo
Gracias Eduardo por tus elogios. Si bien que todos crecemos juntos gracias a esta fantastica comunicacion, participacion y contribuicion de todos los colegas, que inclusive levantan cuestiones que insitivan a busquemos la excelencia. Gracias a todos. :D

Dear Claudio,

Probably you may help us in this. I have got good results with windres script but when I try to write any string with local accents (portuguese: çÇãÃôÔáÁéÉíÍóÓúÚ) and also this "©" UNICODE character it seems .rc file must be in ANSI because as following display:
Screen5.PNG
Screen5.PNG (37.13 KiB) Viewed 5094 times
Searching the internet, I found windres.h special file for UNICODE.
Screen4.PNG
Screen4.PNG (10.22 KiB) Viewed 5093 times
So, this our WindRes.exe is it in UNICODE or in ANSI mode ? Shall it be differentiated according it compiling mode ? Because, our rc file is been written in UTF-8 without BOM and probably this must kept in ANSI mode or shall be the right WindRes for UNICODE/ANSI. What do you think my friend ?

FYI, I setted to portuguese for langID code and I also tried for UNICODE for charsetID but not successful. :(

Even following:
For further details (language.. etc), please read these:

WindRes for MinGW

MSDN definitions
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Properties of the generated .exe file

Post by Javier Tovar »

Excelente Pablo César! Una vez mas. :D :D :D

Saludos
User avatar
vierirom
Posts: 22
Joined: Sat Aug 20, 2011 3:49 pm
Location: Rome, Italy

Re: Properties of the generated .exe file

Post by vierirom »

Hi Pablo
You're Always right. It works perefctly.
If you use the ".RC" file, you cannot use anymore the "-icon=iconfile.ico" option but you need to include the icon resource inside the resource (.rc) file.
Thank you very much to share your knowledge.
Vieri
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Properties of the generated .exe file

Post by Rathinagiri »

My .rc file looks like this. And icon is working nice.

Code: Select all

FIND2		BITMAP		FILESRES\FIND2.BMP
left  BITMAP  left.bmp
right BITMAP right.bmp
icai  JPG icai.jpg
icailogo JPG icailogo.jpg
balance ICON balance.ico

1 VERSIONINFO
FILEVERSION     1,0,0,0
PRODUCTVERSION  1,0,0,0
BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "080904E4"
    BEGIN
      VALUE "CompanyName", "Sivakasi Branck of ICAI"
      VALUE "FileDescription", "Companies Act, 2013 Referencer"
      VALUE "FileVersion", "1.0"
      VALUE "InternalName", "Insights"
      VALUE "LegalCopyright", "CA S. Rathinagiri"
      VALUE "OriginalFilename", "Viewer.exe"
      VALUE "ProductName", "Companies Act 2013 Referencer"
      VALUE "ProductVersion", "1.0"
    END
  END

  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x809, 1252
  END
END

East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Properties of the generated .exe file

Post by serge_girard »

Fantastic !

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Properties of the generated .exe file

Post by mol »

It's strange, but when I change translation from U.S. British to Polish:
before:

Code: Select all

BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x809, 1252
  END
after:

Code: Select all

 BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x415, 1250
  END
some properties like LegalCopyright, ProductName are missing in .exe file properties.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Properties of the generated .exe file

Post by Pablo César »

Javier Tovar wrote:Excelente Pablo César! Una vez mas
Me alegro mucho Javier. :D
vierirom wrote:Thank you very much to share your knowledge.
You raised an important outstanding point. This is a good chance to have this as a reference. :D
Rathinagiri wrote:My .rc file looks like this. And icon is working nice.
:D
Hi Marek,

When you need to change the language, you need to change in two places: the langID and charsetID because if anything doesn't match then will not work properly.
Screen3.PNG
Screen3.PNG (13.09 KiB) Viewed 5037 times
I have found trouble with UNICODE characters, so I do not know if going to work properlly the values when any language accent be typed.

Another question if to know if is going to work in 64 bit also... anyone have already tested :?:
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply