Page 1 of 1

Any side affects of adding hbcompat.ch?

PostPosted: Thu May 02, 2019 4:53 am
by hua
I noticed in FWH9.03's fivewin.ch, hbcompat.ch has been remmed out. Any problem if I reenable it?

TIA

Re: Any side affects of adding hbcompat.ch?

PostPosted: Thu May 02, 2019 7:43 am
by nageswaragunupudi
I can not say what are the side effects. But I remember having removed it after being advised to do so.
The xhb.lib we include in the link script takes care of most of the requirements.
Fivewin.ch itself has some essential cross translates.

Can you add to your link script all the libraries included in buildh.bat and then try your programs without hbcompat.ch.

Re: Any side affects of adding hbcompat.ch?

PostPosted: Thu May 02, 2019 8:20 am
by hua
For now I added the following to fivewin.ch
Code: Select all  Expand view

   #translate ( <exp1> HAS <exp2> )    => hb_regexHas( <exp2>, <exp1> )
   #xtranslate Str( <x>, <n>, <d>, <l> )       => iif( <l>, LTrim( Str( <x>, <n>, <d> ) ), Str( <x>, <n>, <d> ) )
   #xtranslate Str( <x>, <n>,, <l> )           => iif( <l>, LTrim( Str( <x>, <n> ) ), Str( <x>, <n> ) )
   #xtranslate Str( <x>,,, <l> )               => iif( <l>, hb_ntos( <x> ), Str( <x> ) )