Open DLL in plug-in directory

Hello everybody,

I have just updated a VST plug-in to JUCE 2.0.40. This plug-in needs to open a dynamic library (FFTW to be specific) that sits in the plug-ins directory which has worked fine in JUCE 2.0 but now fails:

pDynamicLibraryFFTW = new DynamicLibrary(); pDynamicLibraryFFTW->open("libfftw3f-3.dll");

Is there any JUCE way of finding the plug-in’s directory? I have searched this forum and actually found an answer to my question ( Unfortunately, it seems the mentioned functions have disappeared since then.

Have a nice week-end,


You can give it a full path instead of just the filename, you know?

Hi Jules,

thanks for your answer. I know that I can use a full path - my problem is that the VST plug-in could be anywhere, so I need to know the plug-in’s path first. :slight_smile:

Any ideas?


I had to do this myself recently. I ended up using this:

Seems to do the job pretty well.

Hi flying_pigeon,

thanks a lot, that’s just what I’ve been looking for. It works great! :slight_smile: