leggere test,hrb

Moderator: Enrico Maria Giordano

leggere test,hrb

Postby Silvio.Falconi » Tue Feb 07, 2023 4:25 pm

potrei vedere il listato di test.hrb ?
Come ?
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: 7063
Joined: Thu Oct 18, 2012 7:17 pm

Re: leggere test,hrb

Postby Antonio Linares » Tue Feb 07, 2023 6:16 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42110
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: leggere test,hrb

Postby Jimmy » Wed Feb 08, 2023 4:10 am

hi,

for what are *.hrb File for :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: leggere test,hrb

Postby Antonio Linares » Wed Feb 08, 2023 8:47 am

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
Antonio Linares
Site Admin
 
Posts: 42110
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: leggere test,hrb

Postby Silvio.Falconi » Thu Aug 03, 2023 7:07 pm

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
Silvio.Falconi
 
Posts: 7063
Joined: Thu Oct 18, 2012 7:17 pm

Re: leggere test,hrb

Postby Antonio Linares » Fri Aug 04, 2023 4:12 am

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
Antonio Linares
Site Admin
 
Posts: 42110
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: leggere test,hrb

Postby Silvio.Falconi » Fri Feb 16, 2024 10:01 am

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  RUN
#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
Silvio.Falconi
 
Posts: 7063
Joined: Thu Oct 18, 2012 7:17 pm

Re: leggere test,hrb

Postby Antonio Linares » Fri Feb 16, 2024 11:15 am

You can not have two Main()s

Functions names must be different
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42110
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: leggere test,hrb

Postby Silvio.Falconi » Fri Feb 16, 2024 7:54 pm

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: 7063
Joined: Thu Oct 18, 2012 7:17 pm

Re: leggere test,hrb

Postby Silvio.Falconi » Fri Feb 16, 2024 8:12 pm

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
Silvio.Falconi
 
Posts: 7063
Joined: Thu Oct 18, 2012 7:17 pm


Return to All products support

Who is online

Users browsing this forum: No registered users and 14 guests