Calling Functions in EXE From Plugins in Windows

When writing an application that uses plugins sometimes it’s necessary to have the plugin call functions from the application. This is fairly easy to do on pretty much any OS but on Windows it requires the plugin to link to the application. Sometimes explicit linking is unreasonable. One situation where you don’t want the plugin linking to the application is when the plugin will be used by multiple applications. Windows allows for runtime resolution of exported functions (GetProcAddress) and this is typically used to access functions in a loaded DLL....

July 15, 2012 · John