Plugins?

BlitzMax Forums/BlitzMax Programming/Plugins?

Retimer(Posted 2009) [#1]
Is there no way to dynamically link to libraries after initial runtime?

I see no way of really adding plugin/addon support to an application without this. DLL's have to be in a specific spot location when an application is executed, rather then being able to load/link to them at any time.

Any clues on getting something like this going?


Brucey(Posted 2009) [#2]
Yes, you can use LoadLibrary().


Retimer(Posted 2009) [#3]
So, for example, I can modifty your bass.mod and have it load the library by function prior to initializing the audio engine? Therefore, I would be able to compile and run the app without the dll in the folder, but could load it at anytime?


Brucey(Posted 2009) [#4]
You would have to change all the hardcoded functions to load dynamically instead. Kind of like how the OpenAL module does things.


xlsior(Posted 2009) [#5]
Sounds like an interesting option though: Not having to bundle the DLL, but if it's desired you could drop in the DLL and enable the functionality.