FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH64 + bcc64 + hbmk2 example
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
FWH64 + bcc64 + hbmk2 example
Posted: Fri Jun 16, 2023 07:05 AM
Get Harbour 64 for bcc64 from here:
https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour_bcc64_20230615.zip

go64.bat
Code (fw): Select all Collapse
set bcc=bcc7164
set path=c:\%bcc%\bin
set HB_USER_CFLAGS=-Ic:\%bcc%\INCLUDE\windows\crtl -Ic:\%bcc%\INCLUDE\windows\sdk -Lc:\%bcc%\LIB
set HB_USER_LDFLAGS=-Lc:\%bcc%\LIB;c:\%bcc%\LIB\psdk
c:\harbour\bin\win\bcc64\hbmk2.exe test.hbp -comp=bcc64
test.hbp
Code (fw): Select all Collapse
test.prg 

-optim-
-ldflag+=-aa
-Ic:\fwh64\include
-Lc:\fwh64\lib 

-lfive64
-lfivec64

hbct.hbc
xhb.hbc
hbziparc.hbc
test.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

    MsgInfo( hb_compiler() )

return nil

Included in next FWH build, "makes" folder, file hbmk2_bcc64.zip
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Fri Jun 16, 2023 03:50 PM

Antonio que versión del compilador bcc64 estás usando?

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Fri Jun 16, 2023 03:51 PM

Ha, ya observé en las ruta de conf que es la 7.1, disculpa.

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 230
Joined: Sat Apr 19, 2008 10:28 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Sat Jun 17, 2023 02:54 PM

Good afternoon,

I just finished migrating from fwh32 to fwh64. It's up and running now. I wanted to take this opportunity to thank Antonio for his excellent support and assistance during the installation, as I am not an expert in compilers, resources, etc.

Best regards,

Alvaro

Posts: 181
Joined: Thu Apr 17, 2008 02:38 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Sat Jun 17, 2023 03:12 PM

Hi all,

What are the advantages over the 32-bit version?

Is the Embarcadero - Borland C compiler bcc64 free ? if not what is its cost.

One of the advantages is being able to export large tables to excel from xbrowse without errors?

Tia

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Sat Jun 17, 2023 07:47 PM

Dear Mauri,

> What are the advantages over the 32-bit version?

Much larger memory amount management:

128 GB for Windows 10 Home, 256 GB for Windows 10 Pro, and much higher limits for Windows Server editions

> Is the Embarcadero - Borland C compiler bcc64 free ? if not what is its cost.

Please check your email for instructions

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Mon Jun 19, 2023 08:43 AM
32 bits app are around 15% slower than 64 bits apps

https://groups.google.com/g/harbour-users/c/INKBYSN3DEE
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 230
Joined: Sat Apr 19, 2008 10:28 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Mon Jun 19, 2023 09:03 AM
if you use resources in a *.rc file add this line in the .hpb file
Code (fw): Select all Collapse
-resflag=-IC:\bcc7164\INCLUDE\windows\sdk -IC:\bcc7164\INCLUDE\windows\crtl
and in the .rc file
Code (fw): Select all Collapse
#include <windows.h>
#include <commctrl.h>
// #include <richedit.h> // comment this line

Regards,
Posts: 181
Joined: Thu Apr 17, 2008 02:38 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Mon Jun 19, 2023 02:21 PM
Hi Antonio,
I haven't received anything in the mail as you told me in a previous message,
can you try again using this address ? maurizio.menabue@alice.it ,
sorry for the inconvenience.

TIA
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Mon Jun 19, 2023 03:54 PM

already sent

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Mon Jun 19, 2023 06:44 PM

Hi Antonio,

Can you prepare for FWH64 + msvc 2022 + hbmk2 example please.

Thanks.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Tue Jun 20, 2023 06:51 AM
Dear Hakan,

It is already included in FWH(32/64) in "makes" folder: hbmk2.zip

go64.bat
Code (fw): Select all Collapse
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
c:\harbour\bin\hbmk2 test64.hbp -comp=msvc64
test.exe
test64.hbp
Code (fw): Select all Collapse
-gui

-Ic:\fwh\include

test.prg

-Lc:\fwh\lib

-lFiveH64
-lFiveHC64

-lgdiplus
-lole32
-lOleDlg
-lversion

xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc

-ldflag=/NODEFAULTLIB:msvcrt

test.rc
test.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oBmpTiled, oWnd, oMsgBar

   DEFINE BITMAP oBmpTiled RESOURCE "background"

   DEFINE WINDOW oWnd MENU BuildMenu() TITLE "My app"

   BuildBar( oWnd )

   DEFINE MSGBAR oMsgBar OF oWnd PROMPT "My app" NOINSET

   ACTIVATE WINDOW oWnd MAXIMIZED ;
      ON PAINT DrawTiled( hDC, oWnd, oBmpTiled )

   oBmpTiled:End()

return nil

function BuildMenu()

   local oMenu

   MENU oMenu
      MENUITEM "&Files"
   ENDMENU

return oMenu   

function BuildBar( oWnd )

   local oBar

   DEFINE BUTTONBAR oBar OF oWnd 3D SIZE 70, 70

return nil
test.rc
Code (fw): Select all Collapse
background BITMAP c:\fwh\bitmaps\backgrnd\iosbg.bmp
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Wed Jun 21, 2023 07:54 AM
Antonio Linares wrote:Dear Hakan,

It is already included in FWH(32/64) in "makes" folder: hbmk2.zip

go64.bat
Code (fw): Select all Collapse
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
c:\harbour\bin\hbmk2 test64.hbp -comp=msvc64
test.exe
test64.hbp
Code (fw): Select all Collapse
-gui

-Ic:\fwh\include

test.prg

-Lc:\fwh\lib

-lFiveH64
-lFiveHC64

-lgdiplus
-lole32
-lOleDlg
-lversion

xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc

-ldflag=/NODEFAULTLIB:msvcrt

test.rc
test.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oBmpTiled, oWnd, oMsgBar

   DEFINE BITMAP oBmpTiled RESOURCE "background"

   DEFINE WINDOW oWnd MENU BuildMenu() TITLE "My app"

   BuildBar( oWnd )

   DEFINE MSGBAR oMsgBar OF oWnd PROMPT "My app" NOINSET

   ACTIVATE WINDOW oWnd MAXIMIZED ;
      ON PAINT DrawTiled( hDC, oWnd, oBmpTiled )

   oBmpTiled:End()

return nil

function BuildMenu()

   local oMenu

   MENU oMenu
      MENUITEM "&Files"
   ENDMENU

return oMenu   

function BuildBar( oWnd )

   local oBar

   DEFINE BUTTONBAR oBar OF oWnd 3D SIZE 70, 70

return nil
test.rc
Code (fw): Select all Collapse
background BITMAP c:\fwh\bitmaps\backgrnd\iosbg.bmp
Thank you Antonio.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 76
Joined: Fri Aug 28, 2009 05:25 AM
Re: FWH64 + bcc64 + hbmk2 example
Posted: Thu Jun 22, 2023 06:44 PM
Dear Antonio ,

There was issue in Harbour 64 bit bcc as given old issue link. I am not sure currently it is working fine ?
https://forums.fivetechsupport.com/viewtopic.php?f=3&t=37051&start=0&hilit=multiply&sid=3214644f0d13f5bc95cbc2262ba18227


Thanks
Shridhar

Continue the discussion