FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Xbrowse fwh 11.04 to M.RAo
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Xbrowse fwh 11.04 to M.RAo
Posted: Sat May 07, 2011 01:15 PM
M. Rao

Is it intentional that the following section is commented in xbrowse ?

This produces an error when compiling xbrowse with an application. I uncommented and compile is OK , any side effects ?

PS : I am using an older version of xharbour because of a bug present as per copy to and still not corrected unfortunately

Thank you for your help

Code (fw): Select all Collapse
#ifdef __XHARBOUR__
   #xtranslate hb_hKeyAt( <h>, <n> )     => hGetKeyAt( <h>, <n> )
   #xtranslate hb_hValueAt( <h>, <n> )   => hGetValueAt( <h>, <n> )
   #xtranslate hb_hCaseMatch( <h>, <n> ) => hSetCaseMatch( <h>, <n> )
   #xtranslate hb_WildMatch( <a>, <b> [, <c> ] ) => WildMatch( <a>, <b> [, <c> ] )
   #xtranslate HB_STRTOHEX( <c> ) => STRTOHEX( <c> )
   #xtranslate HB_HEXTOSTR( <c> ) => HEXTOSTR( <c> )
#endif

#ifndef __XHARBOUR__
   #xtranslate \<|[<x,...>]| => {|<x>|
   #xcommand > [<*x*>]       => } <x>
#endif
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse fwh 11.04 to M.RAo
Posted: Sat May 07, 2011 03:25 PM

In the version 11.04, "hbcompat.ch" is newly included which made those commented lines redundant.

If uncommenting these lines works for you, please do that. Uncommenting has no side-effects. You may remove or comment out "#include 'hbcompat.ch'" in the first few include lines of code.

It would help me if you let us know what error are you getting, if these lines are commented out as in 11.04

Regards



G. N. Rao.

Hyderabad, India
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Xbrowse fwh 11.04 to M.RAo
Posted: Sat May 07, 2011 04:54 PM

These are the errors if we comment the lines

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
xbrowse.c:
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_HB_HKEYAT' referenced from C:\CBATI32\PROJETS\RELEASE\XBROWSE.OBJ
Error: Unresolved external '_HB_FUN_HB_HVALUEAT' referenced from C:\CBATI32\PROJETS\RELEASE\XBROWSE.OBJ
Error: Unresolved external '_HB_FUN_HB_HCASEMATCH' referenced from C:\CBATI32\PROJETS\RELEASE\XBROWSE.OBJ

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse fwh 11.04 to M.RAo
Posted: Sat May 07, 2011 05:42 PM

I understand. Thanks for the info.

In the present version of hbcompat.ch, all the above functions are translated into xharbour equivalents.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion