I have a strange issue with my plugin. Placing the following line in the top of my plugin constructor does not return the correct path:
But placing it at the top of the JucePluginDemo constructor does return its correct path. So I’m doing something that’s causing it to return the path and file name of the host, rather than the .dll. It’s odd because it seems to work fine in Linux, and it used to work fine for me on Windows too, but now it doesn’t. I’ve checked my project options, and had a look at the various MSVC debugger settings, but I can’t find the answer. Anyone have any ideas?
[Edit] I rebulid the project using the Introjucer and everything works fine now. I must have messed up my MSVC project but I’ve no idea how!