leggere test,hrb

Moderator: Enrico Maria Giordano

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: leggere test,hrb

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1733
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: leggere test,hrb

Post by Jimmy »

hi,

for what are *.hrb File for :?:
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: leggere test,hrb

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Re: leggere test,hrb

Post 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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: leggere test,hrb

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Re: leggere test,hrb

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: leggere test,hrb

Post by Antonio Linares »

You can not have two Main()s

Functions names must be different
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Re: leggere test,hrb

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Re: leggere test,hrb

Post 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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
goosfancito
Posts: 1955
Joined: Fri Oct 07, 2005 7:08 pm

Re: leggere test,hrb

Post by goosfancito »

Ciao. Silvio ho mandato a te una email.
Grazie
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Post Reply