Page 1 of 2
Make Dll File
Posted: Wed Aug 05, 2009 9:38 pm
by Vanguarda
Hi my friends,
Exist some way to make a DLL file of one HMG project?
I want creat a modular system and i think about this option. It is possible?
TIA,
with best regards,
Re: Make Dll File
Posted: Thu Aug 06, 2009 10:19 pm
by fchirico
Vanguarda wrote:Hi my friends,
Exist some way to make a DLL file of one HMG project?
I want creat a modular system and i think about this option. It is possible?
TIA,
with best regards,
Yes, with QAC (
www.carozodequilmes.com.ar )
Saludos, Fernando Chirico
Re: Make Dll File
Posted: Thu Aug 06, 2009 10:48 pm
by Vanguarda
Thanks brother Fernando Chirico for this info.
I´ll try it.
With best regards,
Re: Make Dll File
Posted: Fri Aug 07, 2009 12:08 am
by Vanguarda
Hi Friend,
This software is very amazing, i like very much.
I try create my DLL file of the one PRG file, but it dont work with me.
I see that i can create a Libfile.a (i did it in here for tests, now) with him, but i want (need) create a dll file.
You know how i can make it with this software, or this not create a DLL of one PRG file?!
Thank for your attention and help.
with best regards,
Re: Make Dll File
Posted: Fri Aug 07, 2009 1:12 am
by fchirico
Vanguarda wrote:
Hi Friend,
This software is very amazing, i like very much.
I try create my DLL file of the one PRG file, but it dont work with me.
I see that i can create a Libfile.a (i did it in here for tests, now) with him, but i want (need) create a dll file.
You know how i can make it with this software, or this not create a DLL of one PRG file?!
Thank for your attention and help.
with best regards,
Te explico:
* Settings\Project Options\Interface Library for DLL
y puedes obtener ayuda en el HELP ( ver File Adjunto )
Saludos, Fernando Chirico.
Re: Make Dll File
Posted: Fri Aug 07, 2009 1:17 am
by fchirico
fchirico wrote:Vanguarda wrote:
Hi Friend,
This software is very amazing, i like very much.
I try create my DLL file of the one PRG file, but it dont work with me.
I see that i can create a Libfile.a (i did it in here for tests, now) with him, but i want (need) create a dll file.
You know how i can make it with this software, or this not create a DLL of one PRG file?!
Thank for your attention and help.
with best regards,
Te explico:
* Settings\Project Options\Interface Library for DLL
y puedes obtener ayuda en el HELP ( ver File Adjunto )
Saludos, Fernando Chirico.
Perdón, luego de enviar el Post me dí cuenta que esto NO crea una DLL sino un puente para usar DLLs externas.
Perdón...
Saludos, Fernando Chirico.
Re: Make Dll File
Posted: Fri Aug 07, 2009 9:15 pm
by Vanguarda
fchirico wrote:
Perdón, luego de enviar el Post me dí cuenta que esto NO crea una DLL sino un puente para usar DLLs externas.
No problem,
Thank´s, once again, for your attention and help.
with best regards,
Re: Make Dll File
Posted: Sun Aug 09, 2009 4:24 pm
by ClaudioGalera
Hola Vanguarda
Creo que la solucion seria el uso de los archivos .hrb ( "Harbour Portable Object o Harbour Runtime Binary (.hrb)" ) . Son archivos prg compilados con el harbour y se comportaria de forma similar a las dll, pudiendo ejecutar funciones y procedimientos que esten en ellas. Por otro lado, estas funciones podran hacer llamadas a rutinas y variables que esten en el ejecutable principal. Particularmente no he tenido la experiencia de usarlas.
En internet vi este ejemplo como compilar
Code: Select all
Compiling and running a Harbour Runtime Binary
J:\Harbour\tests>..\bin\harbour tstcolor.prg /n /i..\include /gh
Harbour Compiler, Build 32 (2000.03.07)
Copyright 1999-2000, http://www.harbour-project.org
Lines 53, Functions/Procedures 1
Generating Harbour Portable Object output to 'tstcolor.hrb'... Done.
luego con la funcion
HRBLOAD(<Filename>) cargas en memoria el archivo hrb y ejecutas la funcion que necesitas
PD : Estoy leyendo en el forum de fivetechsoft que se puede crear dll con pcode y usarlas (
http://forums.fivetechsupport.com/viewt ... dll#p79727 ) pero creo que es algo propio de la libreria fivewin.
Saludos
Claudio
Google Translate
Hello Vanguarda
I think the solution would be to use the archives. HRB (Harbor or Harbor Portable Runtime Object Binary (. HRB) "). Prg files are compiled with the harbor and would behave similarly to the dll, and can execute functions and procedures that are in them. Moreover, these functions can make calls to routines and variables that are in the main executable. Particularly, I have not had the experience of using them.
I saw this on the internet how to compile example
Code: Select all
Compiling and running a Harbour Runtime Binary
J:\Harbour\tests>..\bin\harbour tstcolor.prg /n /i..\include /gh
Harbour Compiler, Build 32 (2000.03.07)
Copyright 1999-2000, http://www.harbour-project.org
Lines 53, Functions/Procedures 1
Generating Harbour Portable Object output to 'tstcolor.hrb'... Done.
then the function
HRBLOAD(<Filename>) file loads into memory HRB and execute the function that you need
PS: I am reading in the forum fivetechsoft dll that can be created and used with pcode (
http://forums.fivetechsupport.com/viewt ... dll#p79727 ) but I think it is something inherent in the library FiveWin.
Greetings
Claudio
Re: Make Dll File
Posted: Sun Aug 09, 2009 4:52 pm
by Vanguarda
Hi friend Claudio,
Very nice this info. i will search on the web about this.
Thank´s for your info and help.
with best regards,
Re: Make Dll File
Posted: Sun Aug 09, 2009 11:33 pm
by Vanguarda
Hi friend ClaudioGalera,
Your sugestion was very useful for me.
Work fine with me in here.
I write a article on my blog about this. ehhh.... (in brazilian portuguese)
http://hmglights.wordpress.com/
Thank´s once again for your attention and help.
regards,