• Run a hwgui program in tray bar show a console window

    From Jmar@21:1/5 to All on Thu Feb 9 12:20:21 2023
    Hello,

    I have made an application that runs in tray bar, I use xharbour+hwgui+xmate. It works fine but it leaves me with a blank console window while the app is running.
    Any help so that window doesn't appear?
    thank you so much

    JM Rodríguez

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Feb 9 21:34:20 2023
    Il 09/02/2023 21:20, Jmar ha scritto:

    Hello,

    I have made an application that runs in tray bar, I use xharbour+hwgui+xmate. It works fine but it leaves me with a blank console window while the app is running.
    Any help so that window doesn't appear?

    Probably, you have to instruct your C compiler/linker to generate a GUI application, not a CONSOLE one.

    --
    Enrico Maria Giordano

    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 Enrico Maria Giordano@21:1/5 to All on Fri Feb 10 17:10:56 2023
    Il 10/02/2023 16:17, Carlos Vargas ha scritto:

    for example in fivewin instead of using gtwin it's gtgui, when using gtwin a black cmd window appears.

    This is not true. Neither gtwin nor gtgui are required with FWH.

    --
    Enrico Maria Giordano

    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 Carlos Vargas@21:1/5 to All on Fri Feb 10 07:17:48 2023
    El jueves, 9 de febrero de 2023 a la(s) 14:20:23 UTC-6, Jmar escribió:
    Hello,

    I have made an application that runs in tray bar, I use xharbour+hwgui+xmate. It works fine but it leaves me with a blank console window while the app is running.
    Any help so that window doesn't appear?
    thank you so much

    JM Rodríguez

    You should check which libs should be included when using hmg, and those are the ones you should use in your xmate script. I don't remember which is the gt lib that hmg uses, for example in fivewin instead of using gtwin it's gtgui, when using gtwin a
    black cmd window appears.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Fri Feb 10 19:31:14 2023
    Il 10/02/2023 17:10, Enrico Maria Giordano ha scritto:

    for example in fivewin instead of using gtwin it's gtgui, when using
    gtwin a black cmd window appears.

    This is not true. Neither gtwin nor gtgui are required with FWH.

    On the contrary, gtwin is required for console programs:

    vm.lib(mainstd.obj) : error LNK2019: unresolved external symbol _HB_FUN_HB_GT_WIN referenced in function _hb_gt_ForceLink_HB_GT_WIN

    I also had gtgui in my library list but at least it is not required now.
    Maybe it was required in the past, I don't remember.

    --
    Enrico Maria Giordano

    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 Carlos Vargas@21:1/5 to All on Sat Feb 11 15:20:36 2023
    El viernes, 10 de febrero de 2023 a la(s) 12:31:15 UTC-6, Enrico Maria Giordano escribió:
    Il 10/02/2023 17:10, Enrico Maria Giordano ha scritto:

    for example in fivewin instead of using gtwin it's gtgui, when using
    gtwin a black cmd window appears.

    This is not true. Neither gtwin nor gtgui are required with FWH.
    On the contrary, gtwin is required for console programs:

    vm.lib(mainstd.obj) : error LNK2019: unresolved external symbol _HB_FUN_HB_GT_WIN referenced in function _hb_gt_ForceLink_HB_GT_WIN

    I also had gtgui in my library list but at least it is not required now. Maybe it was required in the past, I don't remember.
    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg
    set GT=gtgui

    ECHO Compiling...

    set HDIR=%HBDIR%
    set HDIRLIB=%HDIR%\lib\win\bcc
    set FWH=%FWDIR%
    set BCDIR=d:\compiler\bcc
    set BCDIRLIB=%BCDIR%\lib\win32

    %HDIR%\bin\harbour %1 /n /i%FWH%\include;%HDIR%\include /w0 /p /v %2 %3 > comp.log 2> warnings.log
    IF ERRORLEVEL 1 GOTO COMPILEERRORS
    @type comp.log
    @type warnings.log

    echo -O2 -e%1.exe -I%HDIR%\include -I%BCDIR%\include %1.c > b32.bc %BCDIR%\bin\bcc32 -M -c @b32.bc
    :ENDCOMPILE

    IF EXIST %1.rc %BCDIR%\bin\brcc32.exe -r -I%BCDIR%\include -I%BCDIR%\include\windows\sdk %1
    IF ERRORLEVEL 1 GOTO RESOURCESERROR

    echo %BCDIR%\lib\c0w32.obj + > b32.bc
    echo %1.obj, + >> b32.bc
    echo %1.exe, + >> b32.bc
    echo %1.map, + >> b32.bc
    echo %FWH%\lib\patch.lib + >> b32.bc
    echo %FWH%\lib\fiveh.lib + >> b32.bc
    echo %FWH%\lib\fivehc.lib + >> b32.bc
    echo %HDIRLIB%\hbrtl.lib + >> b32.bc
    echo %HDIRLIB%\hbvm.lib + >> b32.bc
    echo %HDIRLIB%\%GT%.lib + >> b32.bc

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jmar@21:1/5 to All on Sun Feb 12 10:57:49 2023
    I have solved my problem, you were right, I included the gtgui library in the link.
    When you remove it, the console window no longer appears.
    I have verified that gtwin.lib and gtgui.lib are not needed if you use hwgui.lib

    Thanks to all for the help

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jmar@21:1/5 to All on Sun Feb 12 10:56:25 2023
    El domingo, 12 de febrero de 2023 a las 0:20:37 UTC+1, Carlos Vargas escribió:
    El viernes, 10 de febrero de 2023 a la(s) 12:31:15 UTC-6, Enrico Maria Giordano escribió:
    Il 10/02/2023 17:10, Enrico Maria Giordano ha scritto:

    for example in fivewin instead of using gtwin it's gtgui, when using
    gtwin a black cmd window appears.

    This is not true. Neither gtwin nor gtgui are required with FWH.
    On the contrary, gtwin is required for console programs:

    vm.lib(mainstd.obj) : error LNK2019: unresolved external symbol _HB_FUN_HB_GT_WIN referenced in function _hb_gt_ForceLink_HB_GT_WIN

    I also had gtgui in my library list but at least it is not required now. Maybe it was required in the past, I don't remember.
    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg
    set GT=gtgui

    ECHO Compiling...

    set HDIR=%HBDIR%
    set HDIRLIB=%HDIR%\lib\win\bcc
    set FWH=%FWDIR%
    set BCDIR=d:\compiler\bcc
    set BCDIRLIB=%BCDIR%\lib\win32

    %HDIR%\bin\harbour %1 /n /i%FWH%\include;%HDIR%\include /w0 /p /v %2 %3 > comp.log 2> warnings.log
    IF ERRORLEVEL 1 GOTO COMPILEERRORS
    @type comp.log
    @type warnings.log

    echo -O2 -e%1.exe -I%HDIR%\include -I%BCDIR%\include %1.c > b32.bc %BCDIR%\bin\bcc32 -M -c @b32.bc
    :ENDCOMPILE

    IF EXIST %1.rc %BCDIR%\bin\brcc32.exe -r -I%BCDIR%\include -I%BCDIR%\include\windows\sdk %1
    IF ERRORLEVEL 1 GOTO RESOURCESERROR

    echo %BCDIR%\lib\c0w32.obj + > b32.bc
    echo %1.obj, + >> b32.bc
    echo %1.exe, + >> b32.bc
    echo %1.map, + >> b32.bc
    echo %FWH%\lib\patch.lib + >> b32.bc
    echo %FWH%\lib\fiveh.lib + >> b32.bc
    echo %FWH%\lib\fivehc.lib + >> b32.bc
    echo %HDIRLIB%\hbrtl.lib + >> b32.bc
    echo %HDIRLIB%\hbvm.lib + >> b32.bc
    echo %HDIRLIB%\%GT%.lib + >> b32.bc

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