Page 1 of 1

Re: leggere test,hrb

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

Re: leggere test,hrb

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

for what are *.hrb File for :?:

Re: leggere test,hrb

Posted: 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

Posted: 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

Posted: 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

Posted: 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

#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

Posted: 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

Posted: 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

Posted: 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 ?

Re: leggere test,hrb

Posted: Wed Jan 08, 2025 3:53 pm
by goosfancito
Ciao. Silvio ho mandato a te una email.
Grazie