FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour Mod_Harbour
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Mod_Harbour
Posted: Thu Mar 05, 2020 07:41 PM

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,

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Mod_Harbour
Posted: Fri Mar 06, 2020 06:55 AM
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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Mod_Harbour
Posted: Fri Mar 06, 2020 08:27 PM

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 ...

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Mod_Harbour
Posted: Mon Mar 09, 2020 06:40 AM
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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion