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
Responder
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

hrb script

Mensaje por 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 ?
Best regards
Srdjan Dragojlovic


Attached files Error.log (1002 B)Â first.hrb (56 B)Â
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

hrb script

Mensaje por Srdjan »

Why I see this error ?
"Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
news:44ebd7cf$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> 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
>
>
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

hrb script

Mensaje por jfgimenez »

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
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

hrb script

Mensaje por Srdjan »

i compile with standard options without add options in project
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:[email=44edd309@news.xailer.com...]44edd309@news.xailer.com...[/email]
> 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
>
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

hrb script

Mensaje por jfgimenez »

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
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

hrb script

Mensaje por Srdjan »

This is sample
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:[email=44edf9ff@news.xailer.com...]44edf9ff@news.xailer.com...[/email]
> 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
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

hrb script

Mensaje por Srdjan »

Go to tools menu and run script
"Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
news:[email=44ef2042@news.xailer.com...]44ef2042@news.xailer.com...[/email]
> This is sample
> "Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
> news:[email=44edf9ff@news.xailer.com...]44edf9ff@news.xailer.com...[/email]
> > 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
> >
> >
>
>
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

hrb script

Mensaje por jfgimenez »

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
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

hrb script

Mensaje por Srdjan »

Any news ?
"Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
news:44ed31c1$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Why I see this error ?
>
> "Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
> news:44ebd7cf$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> > 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
> >
> >
> >
>
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

hrb script

Mensaje por jfgimenez »

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
Mensajes: 475
Registrado: Mar Jul 24, 2012 10:21 pm

Re: hrb script

Mensaje por Cassiano de Oliveira »

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?
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9250
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: hrb script

Mensaje por ignacio »

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:

Código: Seleccionar todo

   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]
https://www.xailer.com
Cassiano de Oliveira
Mensajes: 475
Registrado: Mar Jul 24, 2012 10:21 pm

Re: hrb script

Mensaje por Cassiano de Oliveira »

Thanks Ignacio, I will test.

[]´s
Cassiano de Oliveira
Mensajes: 475
Registrado: Mar Jul 24, 2012 10:21 pm

Re: hrb script

Mensaje por Cassiano de Oliveira »

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.
Imagens do Projeto Hello World
Imagens do Projeto Hello World
Imagem sem título.png (27.98 KiB) Visto 8568 veces
Mensagens de Warning e Erro gerando com parâmetro -gh
Mensagens de Warning e Erro gerando com parâmetro -gh
Mensagens.png (189.59 KiB) Visto 8568 veces
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: hrb script

Mensaje por jfgimenez »

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
Mensajes: 475
Registrado: Mar Jul 24, 2012 10:21 pm

Re: hrb script

Mensaje por Cassiano de Oliveira »

Ok... thanks.
Responder