Plugins?
BlitzMax Forums/BlitzMax Programming/Plugins?
| ||
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? |
| ||
Yes, you can use LoadLibrary(). |
| ||
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? |
| ||
You would have to change all the hardcoded functions to load dynamically instead. Kind of like how the OpenAL module does things. |
| ||
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. |