Page 1 of 1

Trying to Migrate Harbour

PostPosted: Fri Feb 07, 2014 7:55 pm
by vilian
Friends,

I'm trying to migrate my application from xHarbour to Harbour. Now I have a problem compiling the TwBrowse Hernan class. Incidentally, I can usually compile the class, but to link the application generates the following error:

Error: Unresolved external '_HB_FUN_DBSKIPPER' referenced from C:\FWH13\LIB\TWBRW32H.LIB|WBROWSE

I Have tbrowse.prg includes the following:

Code: Select all  Expand view
#ifdef __HARBOUR__
   #ifndef __XHARBOUR__
      #xtranslate _DbSkipper => DbSkipper
   #endif
#endif


But not solved ... Does anyone have this working class to harbour 3.2/FWH 13/08?

Re: Trying to Migrate Harbour

PostPosted: Sat Feb 08, 2014 12:46 am
by Lailton
Try

#ifdef __HARBOUR__
#ifndef __XHARBOUR__
#xtranslate DbSkipper => DbSkip
#endif
#endif

Re: Trying to Migrate Harbour

PostPosted: Sat Feb 08, 2014 7:11 am
by Richard Chidiak
try this

#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

Hth

Richard

Re: Trying to Migrate Harbour

PostPosted: Mon Feb 10, 2014 11:16 am
by vilian
Thanks Richard,

Now I can generate the EXE, but when I run it, is generating an APPCRASH!
Gotta do some more modification to the code wbrowse.prg?