In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

hrb script

Xailer English public forum
Srdjan
Posts: 111
Joined: Sun Jun 22, 2008 1:39 pm

hrb script

Postby Srdjan » Wed Aug 23, 2006 6:21 am

when I use
hHrb := __hrbLoad( MemoRead("C:First.hrb") )
hFunc:= __hrbGetFu( hHrb, "First" )
__hrbDoFu( hFunc )
I see this error log file (attached file). Why ?
Best regards
Srdjan Dragojlovic


Attached files Error.log (1002 B)Â first.hrb (56 B)Â
Srdjan
Posts: 111
Joined: Sun Jun 22, 2008 1:39 pm

hrb script

Postby Srdjan » Thu Aug 24, 2006 6:57 am

Why I see this error ?
"Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
news:44ebd7cf$1@news.xailer.com...
> when I use
>
> hHrb := __hrbLoad( MemoRead("C:First.hrb") )
> hFunc:= __hrbGetFu( hHrb, "First" )
> __hrbDoFu( hFunc )
>
> I see this error log file (attached file). Why ?
>
> Best regards
> Srdjan Dragojlovic
>
>
>
User avatar
jfgimenez
Site Admin
Posts: 5620
Joined: Mon Apr 06, 2015 8:48 pm
Contact:

hrb script

Postby jfgimenez » Thu Aug 24, 2006 6:25 pm

Srdjan,
> when I use
>
> hHrb := __hrbLoad( MemoRead("C:First.hrb") )
> hFunc:= __hrbGetFu( hHrb, "First" )
> __hrbDoFu( hFunc )
>
> I see this error log file (attached file). Why ?
How have you compiled the hrb file? We have not ever tested the hrb support
in Xailer. Perhaps there is a problem in the xHarbour version we are using,
or perhaps there is any incompatibility between Xailer and hrb support.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Srdjan
Posts: 111
Joined: Sun Jun 22, 2008 1:39 pm

hrb script

Postby Srdjan » Thu Aug 24, 2006 8:58 pm

i compile with standard options without add options in project
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:44edd309@news.xailer.com...
> Srdjan,
>
> > when I use
> >
> > hHrb := __hrbLoad( MemoRead("C:First.hrb") )
> > hFunc:= __hrbGetFu( hHrb, "First" )
> > __hrbDoFu( hFunc )
> >
> > I see this error log file (attached file). Why ?
>
> How have you compiled the hrb file? We have not ever tested the hrb
support
> in Xailer. Perhaps there is a problem in the xHarbour version we are
using,
> or perhaps there is any incompatibility between Xailer and hrb support.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>
>
User avatar
jfgimenez
Site Admin
Posts: 5620
Joined: Mon Apr 06, 2015 8:48 pm
Contact:

hrb script

Postby jfgimenez » Thu Aug 24, 2006 9:12 pm

Srdjan,
>i compile with standard options without add options in project
Please, send me a sample project (both .hrb file and the project who runs
it) to test it.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Srdjan
Posts: 111
Joined: Sun Jun 22, 2008 1:39 pm

hrb script

Postby Srdjan » Fri Aug 25, 2006 6:07 pm

This is sample
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:44edf9ff@news.xailer.com...
> Srdjan,
>
> >i compile with standard options without add options in project
>
> Please, send me a sample project (both .hrb file and the project who runs
> it) to test it.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>
>


Attached files xxx.zip (2.8 KB)Â
Srdjan
Posts: 111
Joined: Sun Jun 22, 2008 1:39 pm

hrb script

Postby Srdjan » Fri Aug 25, 2006 6:08 pm

Go to tools menu and run script
"Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
news:44ef2042@news.xailer.com...
> This is sample
> "Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
> news:44edf9ff@news.xailer.com...
> > Srdjan,
> >
> > >i compile with standard options without add options in project
> >
> > Please, send me a sample project (both .hrb file and the project who
runs
> > it) to test it.
> >
> > --
> > Regards,
> >
> > Jose F. Gimenez
> > http://www.xailer.com
> >
> >
>
>
>
User avatar
jfgimenez
Site Admin
Posts: 5620
Joined: Mon Apr 06, 2015 8:48 pm
Contact:

hrb script

Postby jfgimenez » Fri Aug 25, 2006 6:28 pm

Srdjan,
Thanks. I'll review it ASAP.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Srdjan
Posts: 111
Joined: Sun Jun 22, 2008 1:39 pm

hrb script

Postby Srdjan » Mon Aug 28, 2006 8:03 pm

Any news ?
"Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
news:44ed31c1$1@news.xailer.com...
> Why I see this error ?
>
> "Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
> news:44ebd7cf$1@news.xailer.com...
> > when I use
> >
> > hHrb := __hrbLoad( MemoRead("C:First.hrb") )
> > hFunc:= __hrbGetFu( hHrb, "First" )
> > __hrbDoFu( hFunc )
> >
> > I see this error log file (attached file). Why ?
> >
> > Best regards
> > Srdjan Dragojlovic
> >
> >
> >
>
>
User avatar
jfgimenez
Site Admin
Posts: 5620
Joined: Mon Apr 06, 2015 8:48 pm
Contact:

hrb script

Postby jfgimenez » Tue Aug 29, 2006 2:06 pm

Srdjan,
> Any news ?
No, sorry. I haven't had any chance to review it; I'm already on vacation.
I'll do ASAP.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Cassiano de Oliveira
Posts: 475
Joined: Tue Jul 24, 2012 10:21 pm

Re: hrb script

Postby Cassiano de Oliveira » Sun Nov 20, 2016 1:10 am

Olá... é possível gerar Scripts HRB atualmente?

Tentei compilar no Xailer com o parametro -gh pra gerar o arquivo HRB pra poder executar em outros módulos mas apresenta uma série de mensagens de erro.

?Como esta isto hoje em dia?
User avatar
ignacio
Site Admin
Posts: 8563
Joined: Mon Apr 06, 2015 8:00 pm
Location: Madrid, Spain
Contact:

Re: hrb script

Postby ignacio » Fri Nov 25, 2016 11:00 am

Hi,

In order to use HRBs on Xailer 4 just do the following:

Use the contextual menu of the file you want to compile to HRB on the project explorer and select the menu option 'Properties'. Then choose the type to '.hrb'. That's all you need.

To call any function inside the HRB do the following:

Code: Select all

   LOCAL pHrb
   IF !Empty( pHrb := hb_hrbLoad( HB_HRB_BIND_DEFAULT, cFile ) )
      hb_hrbDo( pHrb )
      hb_hrbUnload( pHrb )
   ELSE
      MsgAlert( "Error on file loading: " + cFile )
   ENDIF


BTW, Tested and working nicely!

Regards,

Note: In case you receive a unresolved external from your HRB module, just include those functions on your main application using the REQUEST command.
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Cassiano de Oliveira
Posts: 475
Joined: Tue Jul 24, 2012 10:21 pm

Re: hrb script

Postby Cassiano de Oliveira » Fri Nov 25, 2016 11:07 am

Thanks Ignacio, I will test.

[]´s
Cassiano de Oliveira
Posts: 475
Joined: Tue Jul 24, 2012 10:21 pm

Re: hrb script

Postby Cassiano de Oliveira » Sun Nov 27, 2016 1:28 am

Peguei um pequeno projeto Hello World que possui um Formulário principal com um evento OnInitialize que mostra uma mensagem MsgAlert('Hello World')

Se compilo para gerar um EXE não tenho problemas.

Compilando com -gh para gerar um script HRB apresenta os mensagens de warning e erros que não entendi.

Imagem sem título.png
Imagens do Projeto Hello World
Imagem sem título.png (27.98 KiB) Viewed 3089 times


Mensagens.png
Mensagens de Warning e Erro gerando com parâmetro -gh
Mensagens.png (189.59 KiB) Viewed 3089 times
User avatar
jfgimenez
Site Admin
Posts: 5620
Joined: Mon Apr 06, 2015 8:48 pm
Contact:

Re: hrb script

Postby jfgimenez » Sun Nov 27, 2016 6:31 pm

Cassiano,

a project, in a whole, cannot be compiled to hrb. Only individual modules can. Every module targeting to hrb produces a single hrb.
You can flag any module to be compiled to hrb, excepting the project's module itself and the main module.
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Cassiano de Oliveira
Posts: 475
Joined: Tue Jul 24, 2012 10:21 pm

Re: hrb script

Postby Cassiano de Oliveira » Mon Nov 28, 2016 6:08 pm

Ok... thanks.

Return to “English”