• Set executable assembly information

    From Dirk Schuermans@21:1/5 to All on Sat Jan 15 04:52:25 2022
    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!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dirk Schuermans@21:1/5 to All on Sat Jan 15 06:12:27 2022
    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!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Sat Jan 15 17:06:39 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From CV@21:1/5 to All on Mon Jan 17 05:12:38 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rainer Berning@21:1/5 to All on Mon Jan 17 17:44:49 2022
    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,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From CV@21:1/5 to All on Mon Jan 17 14:21:38 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jayadev U@21:1/5 to All on Tue Jan 18 10:43:44 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gary Williams@21:1/5 to All on Thu Jan 20 02:07:59 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)