Recursos desde modulo .hrb

Recursos desde modulo .hrb

Postby Compuin » Wed Jul 17, 2019 5:12 pm

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?
FWH 20.12
Hbmk2 32/64 Bits (Build 19.29.30133)
Microsoft Visual C 32 Bits
MySql 8.0.24 32/64 Bits
VS Code
Compuin
 
Posts: 1214
Joined: Tue Dec 28, 2010 1:29 pm
Location: Quebec, Canada

Re: Recursos desde modulo .hrb

Postby Compuin » Thu Jul 18, 2019 12:19 pm

Es posible ?
FWH 20.12
Hbmk2 32/64 Bits (Build 19.29.30133)
Microsoft Visual C 32 Bits
MySql 8.0.24 32/64 Bits
VS Code
Compuin
 
Posts: 1214
Joined: Tue Dec 28, 2010 1:29 pm
Location: Quebec, Canada

Re: Recursos desde modulo .hrb

Postby vilian » Thu Jul 18, 2019 7:29 pm

Eu acho que não. Mas vc pode guardar o resource no exe.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 972
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Recursos desde modulo .hrb

Postby Compuin » Thu Jul 18, 2019 7:39 pm

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 ?
FWH 20.12
Hbmk2 32/64 Bits (Build 19.29.30133)
Microsoft Visual C 32 Bits
MySql 8.0.24 32/64 Bits
VS Code
Compuin
 
Posts: 1214
Joined: Tue Dec 28, 2010 1:29 pm
Location: Quebec, Canada

Re: Recursos desde modulo .hrb

Postby vilian » Thu Jul 18, 2019 8:10 pm

I think you could save these resources in a .RES file, and link this .RES with your EXE.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 972
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Recursos desde modulo .hrb

Postby Compuin » Thu Jul 18, 2019 8:11 pm

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
FWH 20.12
Hbmk2 32/64 Bits (Build 19.29.30133)
Microsoft Visual C 32 Bits
MySql 8.0.24 32/64 Bits
VS Code
Compuin
 
Posts: 1214
Joined: Tue Dec 28, 2010 1:29 pm
Location: Quebec, Canada

Re: Recursos desde modulo .hrb

Postby vilian » Thu Jul 18, 2019 8:16 pm

Do you want to read the .rc file and show the dialog ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 972
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Recursos desde modulo .hrb

Postby Compuin » Thu Jul 18, 2019 8:20 pm

vilian wrote:Do you want to read the .rc file and show the dialog ?


Yes
FWH 20.12
Hbmk2 32/64 Bits (Build 19.29.30133)
Microsoft Visual C 32 Bits
MySql 8.0.24 32/64 Bits
VS Code
Compuin
 
Posts: 1214
Joined: Tue Dec 28, 2010 1:29 pm
Location: Quebec, Canada

Re: Recursos desde modulo .hrb

Postby vilian » Thu Jul 18, 2019 8:25 pm

Oh... Any years ago I tried to do this, but without success.
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=14695&p=76089&hilit=vilian#p76089
I'm sorry.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 972
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Recursos desde modulo .hrb

Postby Compuin » Thu Jul 18, 2019 8:32 pm

vilian wrote:Oh... Any years ago I tried to do this, but without success.
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=14695&p=76089&hilit=vilian#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 ?
FWH 20.12
Hbmk2 32/64 Bits (Build 19.29.30133)
Microsoft Visual C 32 Bits
MySql 8.0.24 32/64 Bits
VS Code
Compuin
 
Posts: 1214
Joined: Tue Dec 28, 2010 1:29 pm
Location: Quebec, Canada

Re: Recursos desde modulo .hrb

Postby vilian » Thu Jul 18, 2019 8:39 pm

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.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 972
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Recursos desde modulo .hrb

Postby Compuin » Thu Jul 18, 2019 8:41 pm

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 ?
FWH 20.12
Hbmk2 32/64 Bits (Build 19.29.30133)
Microsoft Visual C 32 Bits
MySql 8.0.24 32/64 Bits
VS Code
Compuin
 
Posts: 1214
Joined: Tue Dec 28, 2010 1:29 pm
Location: Quebec, Canada


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests