FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HARBOUR VS XHARBOUR
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
HARBOUR VS XHARBOUR
Posted: Wed Mar 06, 2013 06:41 PM

I must explain to a new italian friend, he want init to use our language (fwh)

Harbour or Xharbour, Borland or Microsoft C

  1. Wich is the difference ?
  2. How many classes and function I must change ?
  3. wich libs I must link with my app ?
  4. Harbour is fast then xharbour or xharbour is fast more harbour ?
  5. what gain to use harbor instead xHarbour ?

Thanks in advance

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: HARBOUR VS XHARBOUR
Posted: Wed Mar 06, 2013 07:58 PM
Silvio,

1) The differences are explained in Harbour/doc/xhb-diff.txt

I have uploaded it to:
https://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=xhb-diff.txt
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: HARBOUR VS XHARBOUR
Posted: Wed Mar 06, 2013 08:00 PM

3) Please review FWH/samples/buildh.bat and buildx.bat to see the different libraries to link

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: HARBOUR VS XHARBOUR
Posted: Wed Mar 06, 2013 08:03 PM

We can build Harbour with no problems at all on:

  • Windows
  • Windows Mobile
  • Windows 8 RT
  • Linux
  • Mac OSX
  • Apple iOS
  • Android
  • IBM OS2

For me thats a very good reason to use Harbour instead of xHarbour

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Re: HARBOUR VS XHARBOUR
Posted: Wed Mar 06, 2013 11:47 PM

If using xHarbour, are there many code changes needed to switch to harbour?

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: HARBOUR VS XHARBOUR
Posted: Thu Mar 07, 2013 12:04 AM
I just switched to the path of Harbour3.2 (and using the proper library's), but there are a few things to change if you use the advanced power of this compilers... Nothing big, that can be sorted in a few minutes... I think...

I also included this code in one of my prg's:

Code (fw): Select all Collapse
#ifndef __XHARBOUR__

    FUNCTION DbSkipper( n ) ; RETURN __DbSkipper( n )
    FUNCTION DbPack() ; RETURN __DbPack()
    FUNCTION DbZap() ; RETURN hb_DbZap()
    FUNCTION CurDrive( x ) ; RETURN hb_CurDrive( x )

   #command QUIT => ( PostQuitMessage( 0 ), __Quit() )

#EndIf


In my case I can switch from xHarbour to Harbour by just changing the Compiler profile in UEstudio...

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: HARBOUR VS XHARBOUR
Posted: Thu Mar 07, 2013 04:03 AM
About:
Code (fw): Select all Collapse
   #command QUIT => ( PostQuitMessage( 0 ), __Quit() )

Long time back, when I used this command, the EXIT procedures declared in all modules stopped executing.

It is in these EXIT procedures we and FWH *may* release some resources, unload DLLs, etc.

Then I had to revert to the standard command as provided by (x)Harbour.
Regards



G. N. Rao.

Hyderabad, India
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: HARBOUR VS XHARBOUR
Posted: Thu Mar 07, 2013 04:08 AM

Well, I'm using FWH 12.04 with Harbour 3.2, and if I don't use it this way, my app stays running as an process...

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 166
Joined: Wed Aug 29, 2012 08:25 AM
Re: HARBOUR VS XHARBOUR
Posted: Thu Mar 07, 2013 07:38 AM
test

Continue the discussion