Page 1 of 1

Mod_Harbour

PostPosted: Thu Mar 05, 2020 7:41 pm
by byron.hopp
All,

I am new to Mod_Harbour, but loving it. I don't exactly understand how it works. I have been taking several of my functions I use in FiveWin (where I build a lib) and placing them in the source file to utilize. Is there any speed issue in doing this? Is there a way to add a lib to the IIS server like we added Mod_Harbour? I could build an include file which has all of my functions via source code, but I am afraid that my cause speed issues. Can I make some functions Static to the entiry web project, or best to include the code in each prg file?

btw, right now speed is not an issue, it seems to work great.
I am just trying to determine what are the best practices...

Thanks,

Re: Mod_Harbour

PostPosted: Fri Mar 06, 2020 6:55 am
by Antonio Linares
Dear Byron,

You can include your libs into mod_harbour easily:

Simply edit modharbour.hbp and add your libs:
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/modharbour.hbp

Add -lmylibname inside it

don't specify .lib

To build it, simply do: go64.bat

It is real simple and very powerful :-)

Re: Mod_Harbour

PostPosted: Fri Mar 06, 2020 8:27 pm
by byron.hopp
Very cool, do I need to be recompiling with the Microsoft C Compiler or can I use the Borland? Seems like the batch file references to areas that I don't have.

Byron ...

Re: Mod_Harbour

PostPosted: Mon Mar 09, 2020 6:40 am
by Antonio Linares
Byron,

Please install Microsoft Visual Studio Community (free):

https://visualstudio.microsoft.com/

Please review how mod_harbour uses it so just use it the same way to rebuild your libs :-)