FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How do xHarbour and Harbour compatible?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
How do xHarbour and Harbour compatible?
Posted: Mon Jul 01, 2013 10:52 AM

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 2304 / 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)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How do xHarbour and Harbour compatible?
Posted: Mon Jul 01, 2013 11:16 AM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How do xHarbour and Harbour compatible?
Posted: Mon Jul 01, 2013 11:17 AM

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
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: How do xHarbour and Harbour compatible?
Posted: Mon Jul 01, 2013 11:24 AM

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
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 01:29 AM
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 2304 / 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)
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 10:12 AM

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 & MSVC 2022 & FWH 23.06
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 10:22 AM
Hello ,
for harbour - xHArbour differences looks the file
harbour\doc\xhb-diff.txt



For and Harbour+MSVC2010.

go.bat
Code (fw): Select all Collapse
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 (fw): Select all Collapse
# 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 (fw): Select all Collapse
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 11:08 AM
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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 11:10 AM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 11:33 AM

Marc,

No DLLs required. Just a single EXE :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 12:31 PM

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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 12:37 PM

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
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 12:57 PM

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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 01:10 PM
Norberto,

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

https://code.google.com/p/fivewinrt/wiki/How_to_build_Harbour_for_WinRT

Here it is working fine :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: How do xHarbour and Harbour compatible?
Posted: Tue Jul 02, 2013 04:18 PM

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
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit