*.HBP file for FWH64-Borland/CLang and MySQL

Post Reply
Cgallegoa
Posts: 530
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador
Contact:

*.HBP file for FWH64-Borland/CLang and MySQL

Post by Cgallegoa »

Good morning, everyone!

Where can I find a sample *.HBP file to compile and link a simple test that loads a MySQL database with one table and an xBrowse function, using FWH64, Harbour64, Borland/CLang 64, and MSVC 2022 64? I've been trying for two days and haven't been able to get it to work. :oops: :cry:

Thanks for your help, and best wishes to all.

Saludos,

Carlos Gallego

*** FWH-26.03, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1 - MSVC 2022 ***

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: *.HBP file for FWH64-Borland/CLang and MySQL

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1799
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: *.HBP file for FWH64-Borland/CLang and MySQL

Post by Jimmy »

hi,
here my Sample to use MSVC 64 Bit and *.HBP

this ins my Dualgrid.HBP

Code: Select all | Expand

-gui -mt
-Ic:\fwh64\include
DUALGRID.PRG
TGRID.PRG
HB_FUNC.PRG
SHELLAPP.PRG 
HBEJECT.PRG
CODEPAGE.PRG 
IPHONE.PRG 
PROPERTY.PRG 
EVERYTH.PRG 
ABOUT.PRG 
DLGREPL.PRG 
XBROWSE.PRG 
YBROWSE.PRG 
HBSTACK.PRG 
PICKLIST.PRG 
FWMODIFY.PRG 
TCALENDA.PRG
FWREGDB.PRG 
XBROWSER.PRG
DATAROW.PRG 
ADO.prg
XLSWRITE.PRG 
xmlview.prg 
-Lc:\fwh64\lib
-lFiveH64
-lFiveHC64
-lgdiplus
-lole32
-lOleDlg
-lversion
-lDrXlsx64
-LC:\BCC7764\lib\psdk -lUxtheme
xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc
hbpgsql.hbc 
hbodbc.hbc
-ldflag=/NODEFAULTLIB:msvcrt
dualgrid.rc

and this is my GO64.BAT

Code: Select all | Expand

call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
c:\harbour64\bin\win\msvc64\hbmk2 Link64.HBP -comp=msvc64
DUALGRID.exe

Note : it is MSVC from 2022 so you need to change Path to actual Version (18 ???)

Fivewin is installed at c:\fwh64
Harbour is installed at c:\harbour64

greeting,
Jimmy
Cgallegoa
Posts: 530
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador
Contact:

Re: *.HBP file for FWH64-Borland/CLang and MySQL

Post by Cgallegoa »

Jimmy, thank you for your reply.

Actually, I'm compiling for MySQL without any problems and without needing to declare any libraries for MySQL/MariaDB; however, when I try to test in 32 or 64 bits using

FWCONNECT oCn HOST 'localhost' USER 'xxxx' PASSWORD 'xxxxx' DATABASE 'test'

,
then the libraries for MySQL are required.

Regards,

Saludos,

Carlos Gallego

*** FWH-26.03, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1 - MSVC 2022 ***

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: *.HBP file for FWH64-Borland/CLang and MySQL

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply