FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Fwh64 connect mysql problem
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Fwh64 connect mysql problem
Posted: Fri Feb 01, 2019 07:19 AM
Hi Antonio,

I copy TMySQL source code( MySQL.c and TMySQL.prg ) to 64bit .a ( 32bit work fine )

I use FWH64 \ lib \ libmariadb64.a
my TMySQL connect alwayse appear not connect or firewall. ( 32bit work fine )

I use FWH64 \ lib \ libmysql64.a
my TMySQL connect appear below:


I think I want to connect Libmysql.dll to 64bit .a
How to do it? or any Idea?
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Fwh64 connect mysql problem
Posted: Fri Feb 01, 2019 11:00 AM

Our fwh mariadb libraries connect successfully with all Harbour/xHarbour, 32/64 bits, bcc and msvc

We can not answer about TMySql.

Regards



G. N. Rao.

Hyderabad, India
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Fwh64 connect mysql problem
Posted: Sat Feb 02, 2019 01:06 AM
nageswaragunupudi wrote:Our fwh mariadb libraries connect successfully with all Harbour/xHarbour, 32/64 bits, bcc and msvc

We can not answer about TMySql.


Mr.Rao

I think TMySQL MySQL.c incompatible fwh64\lib libmysql64.a

I saw fwh64\dll

    DLLs suplied with FiveWin
    =========================

    ==> For 16 bits only

    * ctl3d.dll Microsoft support for 3d look controls.
    * bwcc.dll Borland Windows Custom Controls
    * Screens.dll FiveWin empty DLL for storing resources
    * Infounz.dll Public domain UNZIP files management
    * WizZip16.dll Public domain ZIP files management
    * SAMPLES\FwDbg.dll FiveWin debugger resources
    * SAMPLES\Report\Preview.dll FiveWin printing preview resources
    * nview16.dll JPG, JIF, GIF, BMP, DIB, RLE, TGA, PCX support

    ==> For 32 bits only

    * bwcc32.dll Borland Windows Custom Controls 32 bits
    * rc2dll32.bat Batch to create a DLL using a RC resources file
    * Screens32.dll FiveWin empty DLL 32 bits for storing resources
    * Prev32.dll FiveWin printing preview resources
    * nviewlib.dll JPG, JIF, GIF, BMP, DIB, RLE, TGA, PCX support

    ==> For 64 bits only

    * screens64.dll FiveWin empty DLL 64 bits for storing resources

    [/list:u]

    I can't find screens64.dll . How to get it?
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Fwh64 connect mysql problem
Posted: Sat Feb 02, 2019 01:42 AM

Harbour 64bits with bcc64

fwh\lib\libmariadb64.a is compatible with fwh\dll\libmariadb64.dll renamed as libmariadb.dll
and
fwh\lib\libmysql64.a is compatible with fwh\dll\libmysql64.dll renamed as libmysql.dll

Regards



G. N. Rao.

Hyderabad, India
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Fwh64 connect mysql problem
Posted: Sun Feb 03, 2019 09:26 AM
nageswaragunupudi wrote:Harbour 64bits with bcc64

fwh\lib\libmariadb64.a is compatible with fwh\dll\libmariadb64.dll renamed as libmariadb.dll
and
fwh\lib\libmysql64.a is compatible with fwh\dll\libmysql64.dll renamed as libmysql.dll


Mr.Rao

I remove TMySQL
FWH any sample for simple connect MySQL server?

Only simple connect MySQL.
use LIB(.a) echo %fwh%\lib\libmysql64.a + >> b64.bc =>Right?
EXE file include Libmysql64.dll =>Right?
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Fwh64 connect mysql problem
Posted: Sun Feb 03, 2019 01:27 PM

First try
build64 maria01, maria02 .... maria*
in the samples folder

For connecting to your server, use

oCn := maria_Connect( server, [database], user, password, [nport] )

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion