FWH64 + bcc64 + hbmk2 example

FWH64 + bcc64 + hbmk2 example

Postby Antonio Linares » Fri Jun 16, 2023 7: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: Select all  Expand view
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: Select all  Expand view
test.prg

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

-lfive64
-lfivec64

hbct.hbc
xhb.hbc
hbziparc.hbc

test.prg
Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

    MsgInfo( hb_compiler() )

return nil

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH64 + bcc64 + hbmk2 example

Postby carlos vargas » Fri Jun 16, 2023 3:50 pm

Antonio que versión del compilador bcc64 estás usando?
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1683
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: FWH64 + bcc64 + hbmk2 example

Postby carlos vargas » Fri Jun 16, 2023 3:51 pm

Ha, ya observé en las ruta de conf que es la 7.1, disculpa.
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1683
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: FWH64 + bcc64 + hbmk2 example

Postby alvaro533 » Sat Jun 17, 2023 2: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
alvaro533
 
Posts: 206
Joined: Sat Apr 19, 2008 10:28 pm
Location: Madrid, España

Re: FWH64 + bcc64 + hbmk2 example

Postby mauri.menabue » Sat Jun 17, 2023 3: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
User avatar
mauri.menabue
 
Posts: 146
Joined: Thu Apr 17, 2008 2:38 pm

Re: FWH64 + bcc64 + hbmk2 example

Postby Antonio Linares » Sat Jun 17, 2023 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH64 + bcc64 + hbmk2 example

Postby Antonio Linares » Mon Jun 19, 2023 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH64 + bcc64 + hbmk2 example

Postby alvaro533 » Mon Jun 19, 2023 9:03 am

if you use resources in a *.rc file add this line in the .hpb file

Code: Select all  Expand view
-resflag=-IC:\bcc7164\INCLUDE\windows\sdk -IC:\bcc7164\INCLUDE\windows\crtl


and in the .rc file

Code: Select all  Expand view
#include <windows.h>
#include <commctrl.h>
// #include <richedit.h> // comment this line
 



Regards,
alvaro533
 
Posts: 206
Joined: Sat Apr 19, 2008 10:28 pm
Location: Madrid, España

Re: FWH64 + bcc64 + hbmk2 example

Postby mauri.menabue » Mon Jun 19, 2023 2: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
User avatar
mauri.menabue
 
Posts: 146
Joined: Thu Apr 17, 2008 2:38 pm

Re: FWH64 + bcc64 + hbmk2 example

Postby Antonio Linares » Mon Jun 19, 2023 3:54 pm

already sent
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH64 + bcc64 + hbmk2 example

Postby Horizon » Mon Jun 19, 2023 6:44 pm

Hi Antonio,

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

Thanks.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1288
Joined: Fri May 23, 2008 1:33 pm

Re: FWH64 + bcc64 + hbmk2 example

Postby Antonio Linares » Tue Jun 20, 2023 6:51 am

Dear Hakan,

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

go64.bat
Code: Select all  Expand view
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: Select all  Expand view
-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: Select all  Expand view
#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: Select all  Expand view
background BITMAP c:\fwh\bitmaps\backgrnd\iosbg.bmp
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH64 + bcc64 + hbmk2 example

Postby Horizon » Wed Jun 21, 2023 7:54 am

Antonio Linares wrote:Dear Hakan,

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

go64.bat
Code: Select all  Expand view
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: Select all  Expand view
-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: Select all  Expand view
#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: Select all  Expand view
background BITMAP c:\fwh\bitmaps\backgrnd\iosbg.bmp


Thank you Antonio.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1288
Joined: Fri May 23, 2008 1:33 pm

Re: FWH64 + bcc64 + hbmk2 example

Postby shrifw » Thu Jun 22, 2023 6: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
shrifw
 
Posts: 54
Joined: Fri Aug 28, 2009 5:25 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests