Unable to run community plugins when packaged.

Hi ,

I’ve recently been trying to integrate a .dll into my plugin. I have been getting the issue “the program can’t start because .dll is missing from your computer”, I have placed it in a folder (Project/Plugins/PluginName/External/lib/.dll) and provided this location as below:

string pathString
PublicDelayLoadDLLs.Add(pathString);
RuntimeDependencies.Add(new RuntimeDependency(pathString));

Once clicking okay on this message, I get another window telling me “Plugin ‘PluginName’ failed to load because module ‘ModuleName’ could not be loaded. There may be an operating system error or the module may not be properly set up.”

I have checked that all paths are correct and there are no compiler issues. There is code in the other parts of the plugin (PluginName/Source) and there is a header that came with the .dll to access functions (PluginName/External/include/provided.h).

Could you please suggest any solutions to this problem? A swift answer would be appreciated :slight_smile:

Best, Sam

PS, I am using 4.10.4 if that helps at all.