Hi Forum, my Name’s Andreas and I’m a developer at brainworx. Besides product development, I also assist our 3rd party program manager in supporting our 3rd party developers within Plugin Alliance.
Some of our current 3Ps use JUCE, which is why I joined this forum.
We recently came across the issue of needing to obtain the hInstance/hModule of the current .dll for integrating code from our framework. In our own plugins, we implement DllMain, which gets the hInstance from the host.
Am I correct in assuming that JUCE handles this via the VST wrapper? Is there a possibility using JUCE functions/data structures to obtain the hInstance of the current DLL? I was only able to give the JUCE framework a cursory glance so far, so it would be great if somebody could point me in the right direction.
I was able to solve the issue using the undocumented hack described in https://blogs.msdn.microsoft.com/oldnewthing/20041025-00/?p=37483 but I`m wondering if JUCE offers a better (i.e. more “official”) way to accomplish this?