How do xHarbour and Harbour compatible?

User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

How do xHarbour and Harbour compatible?

Post by dutch »

I would like to know, if I move from xHarbour (1.2.3)+BCC582 to Harbour 3.2.0+MSVC2010.

How do they compatible?

Thanks in advance.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How do xHarbour and Harbour compatible?

Post by Antonio Linares »

Dutch,

You may easily migrate from xHarbour to Harbour in just few days :-)

You will have all my support and these forums support also :-)
regards, saludos

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

Re: How do xHarbour and Harbour compatible?

Post by Antonio Linares »

It may be quite interesting that we detail here all the required changes, so it will help to other users wanting to migrate to Harbour and Microsoft Visual C :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: How do xHarbour and Harbour compatible?

Post by Richard Chidiak »

Dutch

You can easilly migrate from xharbour to harbour

I have added in my main program the following (maybe now it is not needed anymore, Antonio ?)

#ifndef __XHARBOUR__
FUNCTION DbSkipper( n ) ; RETURN __DbSkipper( n )
FUNCTION DbPack() ; RETURN __DbPack()
FUNCTION DbZap() ; RETURN hb_DbZap()
FUNCTION CurDrive( x ) ; RETURN hb_CurDrive( x )
#EndIf

it is almost all i had to do , except for Activex where you need to use the tactivex function that Antonio updated intensively.

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How do xHarbour and Harbour compatible?

Post by dutch »

Dear Antonio,

It will be helpful for who need to move from and to between xHarbour+BCC32 and Harbour+MSVC2010.
Antonio Linares wrote:It may be quite interesting that we detail here all the required changes, so it will help to other users wanting to migrate to Harbour and Microsoft Visual C :-)
Thanks in advance.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: How do xHarbour and Harbour compatible?

Post by Horizon »

Antonio,

I have downloaded the last Harbour that is uploaded from you. There is no xhb.ch and hbcompat.ch in include directory.

Don't we need this files in last Harbour? or are they forgetten?
(I have copied them from previous Harbour versions)

Thanks.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: How do xHarbour and Harbour compatible?

Post by Maurizio »

Hello ,
for harbour - xHArbour differences looks the file
harbour\doc\xhb-diff.txt



For and Harbour+MSVC2010.

go.bat

Code: Select all

SET PATH=C:\Programmi\Microsoft Visual Studio 10.0\VC\;C:\HARBOUR\bin\;C:\WINDOWS;C:\WINDOWS\SYSTEM32
call "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
hbmk2 -inc  MASTRO.hbm fwh.hbc

IF ERRORLEVEL 1 GOTO LINKERROR
ECHO ------------------  Application successfully built *
MASTRO.exe 
GOTO EXIT
:LINKERROR
ECHO ****************** Linking errors *
GOTO EXIT
:EXIT
mastro.hbm

Code: Select all

# multiple  se manca le funzioni va in errore 
#http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26076&hilit=force
-ldflag=/force:multiple
-n 
-m 
-w 
-es2 
-gc0 
-p
-q
-oMASTRO

#-map
-trace 

#-traceonly

#--hbdirbin          
#--hbdirdyn        
#--hbdirlib        
#--hbdirinc        
#--hbinfo

..\mastro\Mastro.prg  
..\mastro\Base.prg
.
.
.
.\MAST_NW\H_MASTROXP.RES
fwh.hbc

Code: Select all

xhb.hbc
{win}incpaths=include
{win}libpaths=lib

{win}gt=gtgui

#incpaths=${HB_PATH}\contrib\hwgui\include 
incpaths=C:\FWH\include
#incpaths=C:\Dolphin\include
libpaths=C:\FWH\lib
{msvc}libs=fiveh32 fivehc32
{allmingw}libs=fivehg fivehgc xhb
{bcc}libs=fiveh fivehc xhb


libs=hbziparc
libs=hbmzip
libs=minizip

{win}libs=xhb
{win}libs=comctl32
{win}libs=comdlg32
{win}libs=gdi32
#{win}libs=hbcplr
{win}libs=hbct
#{win}libs=hbpcre
{win}libs=hbsqlit3
{win}libs=hbtip
{win}libs=hbwin
-lhbzlib
{win}libs=hbxpp
{win}libs=msimg32
{win}libs=odbc32
{win}libs=ole32
{win}libs=oleaut32
{win}libs=user32
{win}libs=uuid
{win}libs=vfw32
{win}libs=winmm
{win}libs=winspool
{win}libs=wsock32
{win}libs=psapi
{win}libs=version
{win}libs=oledlg
{win}libs=hbnetio
{win}libs=iphlpapi
 

Maurizio
http://www.nipeservice.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How do xHarbour and Harbour compatible?

Post by Antonio Linares »

Hakan,

We don't include xhb.ch and hbcompat.ch as they are not in the include folder of Harbour, in fact they are kept in Harbour contribs folder:

https://github.com/harbour/core/tree/master/contrib/xhb
regards, saludos

Antonio Linares
www.fivetechsoft.com
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: How do xHarbour and Harbour compatible?

Post by Marc Vanzegbroeck »

Hi,

Is Harbour+MSVC2010 also just creating 1 exe-file like xHarbour+BCC32 does, or does it need some DLL's to be installed for running?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How do xHarbour and Harbour compatible?

Post by Antonio Linares »

Marc,

No DLLs required. Just a single EXE :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Re: How do xHarbour and Harbour compatible?

Post by norberto »

I am doing this migration also could not create (or use this topic), for future users who also want to do?
I have a doubt, I can use vs 2012? is the same process of vs 2010?

My idea is use VS2012 to my Windows phone projects and also to compile my applications in FWH, I wonder if everything works that way.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How do xHarbour and Harbour compatible?

Post by Antonio Linares »

Norberto,

Yes, you can use VS2012. I have been able to built my apps using Harbour + FWH + MSVS2012 :-)

Also, the VS2012 debugger is great. I do recommend it, for low level debugging of our apps.
regards, saludos

Antonio Linares
www.fivetechsoft.com
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Re: How do xHarbour and Harbour compatible?

Post by norberto »

Antonio, this is great, has some thread in the Forum with guides? and for the resources? It would be very productive if we could use VS as an IDE for harbour + fwh, it seems that the express version is free for everyone.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How do xHarbour and Harbour compatible?

Post by Antonio Linares »

Norberto,

Yes, we can use the Microsoft Visual Studio IDE :-)

https://code.google.com/p/fivewinrt/wik ... _for_WinRT

Here it is working fine :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: How do xHarbour and Harbour compatible?

Post by TimStone »

I discovered one more thing that is important with the MSVC builds ( 2010 or 2012 )

Be sure to add c:\Program Files (x86)\Visual Studio 10.0\Common7\IDE to your path. There are a few .dll files that are used when you use the Windows compiler and linker that are present I that folder.

The ONLY issue I have right now with MSVC is with RDDADS. I'm still having a problem getting it to actually work with ADS 7 or 8, but it works perfectly with version 9 and above.

I would strongly encourage people to make the move. It is clearly time.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
Post Reply