Hi Leandro, On 2010 Feb 8, at 21:43, 2D Info - Leandro Damasio wrote:
> Hello Viktor > >> I hope someone can answer these, but until then I suggest >> to lookup past messages, there has been _lots_ of detailed >> talk about .hrb files, even recently. You can start by >> looking up HB_HRB*() functions in ChangeLog and find examples >> in source tree. > > Thanks a lot. I'll follow your suggestion for a start. > >> They are pretty handy and lots of Harbour users / developers >> are actively using them. >> >> [ Also see Przemek's recent message about pcode-dlls, >> though it seems we're both recommending .hrb files. ] > > Sure! If there be another (maybe better) way to solve the same problem > (dynamically load of prg code) I'll be very satisfied. > HRB funcionality sounds great, but they seem to work as loadable modules, not > libraries right? From the application POV they look the same, you load it by specifying the filename, and execute functions from it. You have much finer control with .hrb, it's also portable, and .hrb files are very simple to generate (either with hbmk2 or harbour compiler). > If hrb have no important limitations and performance issues compared to > statically linked code and If one could manage the load/unload of lots of hrb > modules at once, it would have definitelly no use for pcode DLLs at all. HRB > libraries could be a perfect crossplatform solution for many people. Perfectly said. I don't know of any limitation. I'd suggest you to explore the loading / execution options. There may be some extreme situations which you need take extra care of (see Lorenzo's recent messages). These aspects are not .hrb specific limitations, but general issues that need to be dealt with when dynamically loading/unloading pcode modules via any methods. In Harbour contrib/hbnetio/utils/netiosrv and examples/httpsrv already make use of .hrb files in real example. Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
