Page 1 of 1

HARBOUR VS XHARBOUR

PostPosted: Wed Mar 06, 2013 6:41 pm
by Silvio.Falconi
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

Re: HARBOUR VS XHARBOUR

PostPosted: Wed Mar 06, 2013 7:58 pm
by Antonio Linares
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

Re: HARBOUR VS XHARBOUR

PostPosted: Wed Mar 06, 2013 8:00 pm
by Antonio Linares
3) Please review FWH/samples/buildh.bat and buildx.bat to see the different libraries to link

Re: HARBOUR VS XHARBOUR

PostPosted: Wed Mar 06, 2013 8:03 pm
by Antonio Linares
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

Re: HARBOUR VS XHARBOUR

PostPosted: Wed Mar 06, 2013 11:47 pm
by Jeff Barnes
If using xHarbour, are there many code changes needed to switch to harbour?

Re: HARBOUR VS XHARBOUR

PostPosted: Thu Mar 07, 2013 12:04 am
by Bayron
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: Select all  Expand view
#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...

Re: HARBOUR VS XHARBOUR

PostPosted: Thu Mar 07, 2013 4:03 am
by nageswaragunupudi
About:
Code: Select all  Expand view
  #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.

Re: HARBOUR VS XHARBOUR

PostPosted: Thu Mar 07, 2013 4:08 am
by Bayron
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...

Re: HARBOUR VS XHARBOUR

PostPosted: Thu Mar 07, 2013 7:38 am
by Franklin Demont