Open DLL in plug-in directory


#1

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 (http://www.rawmaterialsoftware.com/viewtopic.php?t=&f=&p=6695). Unfortunately, it seems the mentioned functions have disappeared since then.

Have a nice week-end,

Martin


#2

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


#3

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?

Martin


#4

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

Seems to do the job pretty well.


#5

Hi flying_pigeon,

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

Martin