Page 1 of 1

leggere test,hrb

PostPosted: Tue Feb 07, 2023 4:25 pm
by Silvio.Falconi
potrei vedere il listato di test.hrb ?
Come ?

Re: leggere test,hrb

PostPosted: Tue Feb 07, 2023 6:16 pm
by Antonio Linares

Re: leggere test,hrb

PostPosted: Wed Feb 08, 2023 4:10 am
by Jimmy
hi,

for what are *.hrb File for :?:

Re: leggere test,hrb

PostPosted: Wed Feb 08, 2023 8:47 am
by Antonio Linares
HRB files (Harbour Portable Object) contain pcode and the symbols table, so you can load them and run them, at runtime

You can create them using harbour.exe with the -gh flag

Re: leggere test,hrb

PostPosted: Thu Aug 03, 2023 7:07 pm
by Silvio.Falconi
Can I load a Hrb file (or more) where I insert some procedure or functions, from a fwh prg without use Harbour.exe ?
Can you make a test here to compile ?

Re: leggere test,hrb

PostPosted: Fri Aug 04, 2023 4:12 am
by Antonio Linares
Dear Silvio,

> Can I load a Hrb file (or more) where I insert some procedure or functions, from a fwh prg without use Harbour.exe ?

yes

> Can you make a test here to compile ?

Please review hrb.prg and hrbext.prg in Harbour/tests folder

Re: leggere test,hrb

PostPosted: Fri Feb 16, 2024 10:01 am
by Silvio.Falconi
Antonio Linares wrote:Dear Silvio,

> Can I load a Hrb file (or more) where I insert some procedure or functions, from a fwh prg without use Harbour.exe ?

yes

> Can you make a test here to compile ?

Please review hrb.prg and hrbext.prg in Harbour/tests folder


Antonio,
can load an Obj from a fwh exe file ?

I tried this prg but not run

Code: Select all  Expand view
#include "fivewin.ch"

FUNCTION Main()
Local x, handle := hb_hrbLoad( "test.obj" )

x := Main()   // from tet.obj

hb_hrbUnload( handle )
Return Nil

Re: leggere test,hrb

PostPosted: Fri Feb 16, 2024 11:15 am
by Antonio Linares
You can not have two Main()s

Functions names must be different

Re: leggere test,hrb

PostPosted: Fri Feb 16, 2024 7:54 pm
by Silvio.Falconi
Antonio Linares wrote:You can not have two Main()s

Functions names must be different



Oops Sorry the mistake now i go to try

Re: leggere test,hrb

PostPosted: Fri Feb 16, 2024 8:12 pm
by Silvio.Falconi
Antonio Linares wrote:You can not have two Main()s

Functions names must be different



With HB_Compile( "", "test.prg", "/n", "/gh" )

If I have also

test.prg,
tslines.prg,
ut_fun.prg
ut_labels.prg
and the lib hbzebra.lib

how I can to creare the file hrb ?