« FileMaker Conference … | Home | MBS Xojo / Real Studi… »

Loading LibXL and DynaPDF libraries in our Xojo plugins

For the future you can provide a feature in your application to load a dynapdf or libxl library from a folder if needed. I added LoadLibrary methods there, so you can load a given version of those libraries and use those instead of the built in libraries. For example with DynaPDF:
MsgBox "Version before: "+DynaPDFMBS.DynaPDFVersion dim f as FolderItem = SpecialFolder.Desktop.Child("dynapdf.dylib") if DynaPDFMBS.LoadLibrary(f) then MsgBox "Version after: "+DynaPDFMBS.DynaPDFVersion else MsgBox DynaPDFMBS.LoadError end if
The idea is that in case a bug is found in dynapdf or libxl or a newer version released, you can yourself get a copy of the library and load the newer library in the plugin. If you implement the optional dynamic loading of the library from e.g. application folder, you can provide your customers an update to libxl or dynapdf without recompiling the application.

The new LoadLibrary function for DynaPDF will be available in 17.0pr2 plugins. Please do not hesitate to ask if you like to try it sooner.
08 01 17 - 23:45
two comments

Good thinking. But then how do you call a new function in the loaded library until its available through the built-in calls.
Sunil Abraham - 09 01 17 - 06:30

When the app starts, the plugin defaults to the internal library.
As soon as you call LoadLibrary successfully, you get all calls redirected to new library.
So please do it as soon as possible when you launch.
Christian Schmitz (URL) - 09 01 17 - 08:43

Remember personal info?

Emoticons / Textile

Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.