Make Dll File

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Make Dll File

Post 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,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Re: Make Dll File

Post 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
Saludos, Fernando Chirico.
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Make Dll File

Post by Vanguarda »

Thanks brother Fernando Chirico for this info.
I´ll try it.

With best regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Make Dll File

Post by Vanguarda »

fchirico wrote: Yes, with QAC ( http://www.carozodequilmes.com.ar )
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,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Re: Make Dll File

Post by fchirico »

Vanguarda wrote:
fchirico wrote: Yes, with QAC ( http://www.carozodequilmes.com.ar )
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.
Attachments
help_dll.JPG
help_dll.JPG (222.74 KiB) Viewed 5459 times
Saludos, Fernando Chirico.
User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Re: Make Dll File

Post by fchirico »

fchirico wrote:
Vanguarda wrote:
fchirico wrote: Yes, with QAC ( http://www.carozodequilmes.com.ar )
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.
Saludos, Fernando Chirico.
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Make Dll File

Post 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,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
ClaudioGalera
Posts: 47
Joined: Tue Jul 14, 2009 1:14 pm
Location: Mar del Plata, Argentina

Re: Make Dll File

Post 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
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Make Dll File

Post 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,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Make Dll File

Post 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,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
Post Reply