Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Spock: We suffered 23 casualties in that attack, Captain.


devel / comp.lang.xharbour / Set executable assembly information

SubjectAuthor
* Set executable assembly informationDirk Schuermans
`* Set executable assembly informationDirk Schuermans
 `* Set executable assembly informationEnrico Maria Giordano
  `* Set executable assembly informationCV
   +* Set executable assembly informationRainer Berning
   |`- Set executable assembly informationCV
   `* Set executable assembly informationJayadev U
    `- Set executable assembly informationGary Williams

1
Set executable assembly information

<19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10461&group=comp.lang.xharbour#10461

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:7f8b:: with SMTP id z11mr11288138qtj.396.1642251145976; Sat, 15 Jan 2022 04:52:25 -0800 (PST)
X-Received: by 2002:a37:bd4:: with SMTP id 203mr9450207qkl.701.1642251145771; Sat, 15 Jan 2022 04:52:25 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Sat, 15 Jan 2022 04:52:25 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=84.195.9.140; posting-account=z_tT2woAAADMaSYOK7Qm2I4EgL8KxAVV
NNTP-Posting-Host: 84.195.9.140
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com>
Subject: Set executable assembly information
From: dirkschu...@gmail.com (Dirk Schuermans)
Injection-Date: Sat, 15 Jan 2022 12:52:25 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: Dirk Schuermans - Sat, 15 Jan 2022 12:52 UTC

Hey,

I'm wondering if you anyone could help me by pointing me in the right direction here.

When compiling an old clipper program using the free version of xHarbour, is it al all possible to set the resulting executable's version metadata?

I'm referring to the properties found under the "Details" tab when you right click the executable and open the properties dialog.

I'm interested in setting the "File version" and/or "Product version" properties.

Thanks!

Re: Set executable assembly information

<5ad65732-bfb1-485d-9cc6-0e6b95c85950n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10462&group=comp.lang.xharbour#10462

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:622a:1792:: with SMTP id s18mr11213204qtk.684.1642255948393;
Sat, 15 Jan 2022 06:12:28 -0800 (PST)
X-Received: by 2002:ac8:570b:: with SMTP id 11mr1151161qtw.492.1642255948217;
Sat, 15 Jan 2022 06:12:28 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Sat, 15 Jan 2022 06:12:27 -0800 (PST)
In-Reply-To: <19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=84.195.9.140; posting-account=z_tT2woAAADMaSYOK7Qm2I4EgL8KxAVV
NNTP-Posting-Host: 84.195.9.140
References: <19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5ad65732-bfb1-485d-9cc6-0e6b95c85950n@googlegroups.com>
Subject: Re: Set executable assembly information
From: dirkschu...@gmail.com (Dirk Schuermans)
Injection-Date: Sat, 15 Jan 2022 14:12:28 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 27
 by: Dirk Schuermans - Sat, 15 Jan 2022 14:12 UTC

Ah, figured it out myself :)

I've included a version.rc file in my sources and added it to my xbp file:

[src\version.rc]
MYC_FLAGS =
MYDEFINES =
MYPRG_FLAGS =

Contents of the version.rc file as per the following example:

https://docs.microsoft.com/nl-nl/windows/win32/menurc/versioninfo-resource#examples

Hope this helps anyone else trying to figure out the same thing :)

Cheers!

> Hey,
>
> I'm wondering if you anyone could help me by pointing me in the right direction here.
>
> When compiling an old clipper program using the free version of xHarbour, is it al all possible to set the resulting executable's version metadata?
>
> I'm referring to the properties found under the "Details" tab when you right click the executable and open the properties dialog.
>
> I'm interested in setting the "File version" and/or "Product version" properties.
>
> Thanks!

Re: Set executable assembly information

<srureg$tm5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10463&group=comp.lang.xharbour#10463

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: e.m.gior...@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: Set executable assembly information
Date: Sat, 15 Jan 2022 17:06:39 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <srureg$tm5$1@dont-email.me>
References: <19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com>
<5ad65732-bfb1-485d-9cc6-0e6b95c85950n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 15 Jan 2022 16:06:40 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4b2ea2156a0b8502fd6bcd3801f7c008";
logging-data="30405"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/x/BV8HM67TO3CtgbqzoRd"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:DznXOqdol8MqR+96rlBtYbAyHqc=
In-Reply-To: <5ad65732-bfb1-485d-9cc6-0e6b95c85950n@googlegroups.com>
 by: Enrico Maria Giordan - Sat, 15 Jan 2022 16:06 UTC

Il 15/01/2022 15:12, Dirk Schuermans ha scritto:

> Ah, figured it out myself :)
>
> I've included a version.rc file in my sources and added it to my xbp file:

Thank you for sharing. I didn't know we can use RC file even with
console programs.

EMG

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: Set executable assembly information

<75309fb7-04fb-46f1-8231-6df9ce9217e3n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10464&group=comp.lang.xharbour#10464

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a37:db12:: with SMTP id e18mr14884567qki.14.1642425158588;
Mon, 17 Jan 2022 05:12:38 -0800 (PST)
X-Received: by 2002:a05:6214:2b05:: with SMTP id jx5mr18177327qvb.124.1642425158461;
Mon, 17 Jan 2022 05:12:38 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Mon, 17 Jan 2022 05:12:38 -0800 (PST)
In-Reply-To: <srureg$tm5$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=152.170.233.99; posting-account=PzJOtwoAAAB-nLPGTsEPjzvj-I7nsyBK
NNTP-Posting-Host: 152.170.233.99
References: <19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com>
<5ad65732-bfb1-485d-9cc6-0e6b95c85950n@googlegroups.com> <srureg$tm5$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <75309fb7-04fb-46f1-8231-6df9ce9217e3n@googlegroups.com>
Subject: Re: Set executable assembly information
From: cvosk...@gmail.com (CV)
Injection-Date: Mon, 17 Jan 2022 13:12:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 29
 by: CV - Mon, 17 Jan 2022 13:12 UTC

El sábado, 15 de enero de 2022 a la(s) 13:06:42 UTC-3, Enrico Maria Giordano escribió:
> Il 15/01/2022 15:12, Dirk Schuermans ha scritto:
>
> > Ah, figured it out myself :)
> >
> > I've included a version.rc file in my sources and added it to my xbp file:
> Thank you for sharing. I didn't know we can use RC file even with
> console programs.
>
> EMG
>
> http://www.emagsoftware.it
> http://www.emagsoftware.it/emgmusic
> http://www.emagsoftware.it/spectrum
> http://www.emagsoftware.it/tbosg

Hi all

Thing is, if you put a reference to an icon in the .RC file on a console app, I couldn't find a way to display it properly in the title bar when executing it.

If anyone has a clue is welcome!

Best regards
---
Claudio Voskian
Buenos Aires - Argentina

Re: Set executable assembly information

<ss46e1$qnk$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10465&group=comp.lang.xharbour#10465

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rbern...@arcor.de (Rainer Berning)
Newsgroups: comp.lang.xharbour
Subject: Re: Set executable assembly information
Date: Mon, 17 Jan 2022 17:44:49 +0100
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <ss46e1$qnk$1@dont-email.me>
References: <19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com>
<5ad65732-bfb1-485d-9cc6-0e6b95c85950n@googlegroups.com>
<srureg$tm5$1@dont-email.me>
<75309fb7-04fb-46f1-8231-6df9ce9217e3n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 17 Jan 2022 16:44:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="91796a9081f6609fafdaad95844f738c";
logging-data="27380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ptV/k5oxcAaQRiMZJpvGP"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:zRL5KnfluVnfAeKJsn62KZO9uFk=
In-Reply-To: <75309fb7-04fb-46f1-8231-6df9ce9217e3n@googlegroups.com>
 by: Rainer Berning - Mon, 17 Jan 2022 16:44 UTC

Am 17.01.2022 um 14:12 schrieb CV:
> El sábado, 15 de enero de 2022 a la(s) 13:06:42 UTC-3, Enrico Maria Giordano escribió:
>> Il 15/01/2022 15:12, Dirk Schuermans ha scritto:
>>
>>> Ah, figured it out myself :)
>>>
>>> I've included a version.rc file in my sources and added it to my xbp file:
>> Thank you for sharing. I didn't know we can use RC file even with
>> console programs.
>>
>> EMG
>>
>> http://www.emagsoftware.it
>> http://www.emagsoftware.it/emgmusic
>> http://www.emagsoftware.it/spectrum
>> http://www.emagsoftware.it/tbosg
>
> Hi all
>
> Thing is, if you put a reference to an icon in the .RC file on a console app, I couldn't find a way to display it properly in the title bar when executing it.
>
> If anyone has a clue is welcome!
>
> Best regards
> ---
> Claudio Voskian
> Buenos Aires - Argentina

Hi

Try to use ResourceHacker. This work for me.

if Program name is xmain.exe and the icon name is chef.ico:

REM Icon in Programm einbinden
"C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe" -open ".\xmain.exe" -save ".\xmain.exe" -action addskip -res ".\chef.ico" -mask ICONGROUP,MAINICON,

Re: Set executable assembly information

<dd08114c-10f5-4f33-99ad-dd19ad4cb71en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10466&group=comp.lang.xharbour#10466

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a37:ad15:: with SMTP id f21mr9953687qkm.542.1642458099239;
Mon, 17 Jan 2022 14:21:39 -0800 (PST)
X-Received: by 2002:a05:622a:1392:: with SMTP id o18mr18536866qtk.415.1642458099054;
Mon, 17 Jan 2022 14:21:39 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Mon, 17 Jan 2022 14:21:38 -0800 (PST)
In-Reply-To: <ss46e1$qnk$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=152.170.233.99; posting-account=PzJOtwoAAAB-nLPGTsEPjzvj-I7nsyBK
NNTP-Posting-Host: 152.170.233.99
References: <19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com>
<5ad65732-bfb1-485d-9cc6-0e6b95c85950n@googlegroups.com> <srureg$tm5$1@dont-email.me>
<75309fb7-04fb-46f1-8231-6df9ce9217e3n@googlegroups.com> <ss46e1$qnk$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dd08114c-10f5-4f33-99ad-dd19ad4cb71en@googlegroups.com>
Subject: Re: Set executable assembly information
From: cvosk...@gmail.com (CV)
Injection-Date: Mon, 17 Jan 2022 22:21:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2797
 by: CV - Mon, 17 Jan 2022 22:21 UTC

El lunes, 17 de enero de 2022 a la(s) 13:44:51 UTC-3, Rainer Berning escribió:
> Am 17.01.2022 um 14:12 schrieb CV:
> > El sábado, 15 de enero de 2022 a la(s) 13:06:42 UTC-3, Enrico Maria Giordano escribió:
> >> Il 15/01/2022 15:12, Dirk Schuermans ha scritto:
> >>
> >>> Ah, figured it out myself :)
> >>>
> >>> I've included a version.rc file in my sources and added it to my xbp file:
> >> Thank you for sharing. I didn't know we can use RC file even with
> >> console programs.
> >>
> >> EMG
> >>
> >> http://www.emagsoftware.it
> >> http://www.emagsoftware.it/emgmusic
> >> http://www.emagsoftware.it/spectrum
> >> http://www.emagsoftware.it/tbosg
> >
> > Hi all
> >
> > Thing is, if you put a reference to an icon in the .RC file on a console app, I couldn't find a way to display it properly in the title bar when executing it.
> >
> > If anyone has a clue is welcome!
> >
> > Best regards
> > ---
> > Claudio Voskian
> > Buenos Aires - Argentina
> Hi
>
> Try to use ResourceHacker. This work for me.
>
> if Program name is xmain.exe and the icon name is chef.ico:
>
> REM Icon in Programm einbinden
> "C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe" -open ".\xmain.exe" -save ".\xmain.exe" -action addskip -res ".\chef.ico" -mask ICONGROUP,MAINICON,

Thank you Rainer, will try that!
Regards
C.

Re: Set executable assembly information

<ss5ia8$osb$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10467&group=comp.lang.xharbour#10467

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: _ujayad...@gmail.com (Jayadev U)
Newsgroups: comp.lang.xharbour
Subject: Re: Set executable assembly information
Date: Tue, 18 Jan 2022 10:43:44 +0530
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <ss5ia8$osb$1@dont-email.me>
References: <19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com>
<5ad65732-bfb1-485d-9cc6-0e6b95c85950n@googlegroups.com>
<srureg$tm5$1@dont-email.me>
<75309fb7-04fb-46f1-8231-6df9ce9217e3n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 Jan 2022 05:13:44 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6d6a459d395da5b2f1df5460d0319785";
logging-data="25483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rMgl23glOi7H77x9XMjdzloENnPRcHmU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:BdcXwL+2gaKyK//QLs3OCxFrkAs=
In-Reply-To: <75309fb7-04fb-46f1-8231-6df9ce9217e3n@googlegroups.com>
Content-Language: en-US
 by: Jayadev U - Tue, 18 Jan 2022 05:13 UTC

On 17-01-2022 06:42 pm, CV wrote:
> El sábado, 15 de enero de 2022 a la(s) 13:06:42 UTC-3, Enrico Maria Giordano escribió:
>> Il 15/01/2022 15:12, Dirk Schuermans ha scritto:
>>
>>> Ah, figured it out myself :)
>>>
>>> I've included a version.rc file in my sources and added it to my xbp file:
>> Thank you for sharing. I didn't know we can use RC file even with
>> console programs.
>>
>> EMG
>>
>> http://www.emagsoftware.it
>> http://www.emagsoftware.it/emgmusic
>> http://www.emagsoftware.it/spectrum
>> http://www.emagsoftware.it/tbosg
>
> Hi all
>
> Thing is, if you put a reference to an icon in the .RC file on a console app, I couldn't find a way to display it properly in the title bar when executing it.
>
> If anyone has a clue is welcome!
>
> Best regards
> ---
> Claudio Voskian
> Buenos Aires - Argentina

Hi Claudio,

Please try this:

/* in your main program */

#include "gtinfo.ch" // xHarbour function for ICOn display (it may also
be hbgtinfo.ch)

#define PRGICON 101

Function Main
hb_gtInfo(HB_GTI_ICONRES,PRGICON)

In your .rc file

#define PRGICON 101
PRGICON ICON "youricon.ico"

HTH,

Warm regards,

Jayadev

Re: Set executable assembly information

<996ff183-5127-452a-a245-49d91d8b153bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10468&group=comp.lang.xharbour#10468

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ae9:c00f:: with SMTP id u15mr23559617qkk.689.1642673279661; Thu, 20 Jan 2022 02:07:59 -0800 (PST)
X-Received: by 2002:a05:620a:80f:: with SMTP id s15mr23656226qks.29.1642673279515; Thu, 20 Jan 2022 02:07:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 20 Jan 2022 02:07:59 -0800 (PST)
In-Reply-To: <ss5ia8$osb$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:781:8100:3b4:75da:4068:9d49:ef7b; posting-account=HHEq4woAAADnwl5Ihl-uo-jF2A6Q7gZD
NNTP-Posting-Host: 2601:781:8100:3b4:75da:4068:9d49:ef7b
References: <19a12dfc-a644-4ba5-9cb8-84cae8b791c3n@googlegroups.com> <5ad65732-bfb1-485d-9cc6-0e6b95c85950n@googlegroups.com> <srureg$tm5$1@dont-email.me> <75309fb7-04fb-46f1-8231-6df9ce9217e3n@googlegroups.com> <ss5ia8$osb$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <996ff183-5127-452a-a245-49d91d8b153bn@googlegroups.com>
Subject: Re: Set executable assembly information
From: gary.l.w...@gmail.com (Gary Williams)
Injection-Date: Thu, 20 Jan 2022 10:07:59 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 5
 by: Gary Williams - Thu, 20 Jan 2022 10:07 UTC

In my console app under the xharbour.com version, just adding the following line to the top of the RC file did the trick,
no other calls to GTInfo etc required

APPICON ICON "IconFileName.ico"

Change file name as needed above

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor