FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Migrating to Harbour
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Migrating to Harbour
Posted: Wed Dec 10, 2014 11:40 AM
I get the following error:

Code (fw): Select all Collapse
Error: Unresolved external '_HB_FUN___CLSLOCKDEF'


What is this?

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 11:48 AM

Enrico,

It seems as you are not using the right Harbour libraries as such function is defined in classes.c and classes.obj belongs to hbrtl.lib

Please edit (with an ascii viewer, I use Total Commander) hbrtl.lib and look for CLSLOCKDEF inside it

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 12:28 PM

Thank you, fixed.

One more problem: a console pops up when I run my EXEs. How to get rid of it?

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 01:13 PM

Enrico,

Are you using the flag -aa when linking ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 02:32 PM

Antonio,

yes.

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 02:36 PM
Another one. I need this:

Code (fw): Select all Collapse
EXTEND CLASS TControl WITH DATA lSel


How can I do it with Harbour?

EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 04:16 PM
Another one: with Harbour I can't use CopyFile() to copy files with character like à. It returns .F.:

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    MEMOWRIT( "testà", "" )

    ? COPYFILE( "testà", "testb" )

    RETURN NIL


EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 06:45 PM
Enrico Maria Giordano wrote:One more problem: a console pops up when I run my EXEs. How to get rid of it?


The problem is that I'm linking both gtwin.lib and gtgui.lib. But if I remove gtwin.lib I get:

Code (fw): Select all Collapse
Error: Unresolved external '_HB_FUN_HB_GT_WIN' referenced from E:\HARBOUR\LIB\HBRTL.LIB|gtsys


Any ideas? I think I have to define gtsys() somewhere...

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 09:53 PM

Enrico,

     __clsAddMsg( hClass, "NewData"         ,  1, HB_OO_MSG_ACCESS )
     __clsAddMsg( hClass, "_NewData"       ,  1, HB_OO_MSG_ASSIGN )

Please review tclass.prg from harbour source code

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 10:00 PM
Antonio,

Antonio Linares wrote:Enrico,

__clsAddMsg( hClass, "NewData" , 1, HB_OO_MSG_ACCESS )
__clsAddMsg( hClass, "_NewData" , 1, HB_OO_MSG_ASSIGN )

Please review tclass.prg from harbour source code


Thank you, I will try them. And sorry, I don't have Harbour source code.

EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 10:02 PM

Any solutions for CopyFile() problem? It looks like something unicode related...

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 10:07 PM

And, by the way, I'm still unable to get a working application with Harbour... :-(

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Wed Dec 10, 2014 10:15 PM
Antonio,

Antonio Linares wrote: __clsAddMsg( hClass, "NewData" , 1, HB_OO_MSG_ACCESS )
__clsAddMsg( hClass, "_NewData" , 1, HB_OO_MSG_ASSIGN )


What is hClass?

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Thu Dec 11, 2014 08:14 AM
Enrico,

https://github.com/harbour/core/tree/master

Now you have Harbour full source code :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Thu Dec 11, 2014 08:15 AM

Enrico,

hClass is the handle of a Class, you can access it this way:

TAnyClass():hClass

or directly from an existing object:

oObject:hClass

regards, saludos

Antonio Linares
www.fivetechsoft.com