Page 1 of 1

Recursos desde modulo .hrb

Posted: Wed Jul 17, 2019 5:12 pm
by Compuin
Hola foro

Es posible crear un dialogo y otros controles desde recursos y guardar el .prg como un archivo harbour .hrb ?

Si es posible, algun ejemplo?

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 12:19 pm
by Compuin
Es posible ?

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 7:29 pm
by vilian
Eu acho que não. Mas vc pode guardar o resource no exe.

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 7:39 pm
by Compuin
vilian wrote:Eu acho que não. Mas vc pode guardar o resource no exe.
I need to have the resource out of the .exe, but I still need to modify the .hrb program using this resource

How could I do this ?

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 8:10 pm
by vilian
I think you could save these resources in a .RES file, and link this .RES with your EXE.

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 8:11 pm
by Compuin
vilian wrote:I think you could save these resources in a .RES file, and link this .RES with your EXE.
The main idea it not to have to link and recompile the .exe

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 8:16 pm
by vilian
Do you want to read the .rc file and show the dialog ?

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 8:20 pm
by Compuin
vilian wrote:Do you want to read the .rc file and show the dialog ?
Yes

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 8:25 pm
by vilian
Oh... Any years ago I tried to do this, but without success.
http://forums.fivetechsupport.com/viewt ... ian#p76089
I'm sorry.

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 8:32 pm
by Compuin
vilian wrote:Oh... Any years ago I tried to do this, but without success.
http://forums.fivetechsupport.com/viewt ... ian#p76089
I'm sorry.
Vilan, I read you worked with .hrb files.

How do you deal with dialogs and objects for your system? Do you use just code or you put those in .rc files ?

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 8:39 pm
by vilian
Those dialogs that are simpler, I write them in the code/prg. Those dialogs complexer I keep them i .RES file.
I don't use RC files.

Re: Recursos desde modulo .hrb

Posted: Thu Jul 18, 2019 8:41 pm
by Compuin
vilian wrote:Those dialogs that are simpler, I write them in the code/prg. Those dialogs complexer I keep them i .RES file.
I don't use RC files.
All rigth

I guess in this case, you don't need to recompile the .hrb ?