I’m making a DLL in which I want to use Juce, so I was wondering about the things I’m supposed to do to initialise Juce properly in a DLL.
Things are pretty clear when building an app, thanks to the example project: use JUCEApplication class + START_JUCE_APPLICATION (JUCEEditorApplication) macro.
As for the DLL case, I’ve had a look at the VST plugin example, which produces a DLL as well, but I’ve probably missed something, as everything works in my DLL except that I’m using a Timer and timerCallback() is never called.
Juce library is included in my DLL project, and I call initialiseJuce_GUI(), as I’ve found this was done in the VST plugin demo code. However, this isn’t sufficient, so I suppose I missed something else, like creating a thread with a MessageManager or something like that…
So what shall I do to fully initialise Juce in a DLL rather than an app, and get my timer to work?