Creating Plugin with .lib and .dll

Thanks for your answer! I guess I have to go for the first way. The library I want to use in my plugin consists of libs, dlls and header files. If I am correct, I want to include the header files that are then using functions from the dll and lib files. I have found the following for linking dlls:

PublicDelayLoadDLLs.Add("XXXX.dll");

And that you can do something like this in your plugin’s cpp file:

DLLHandle = FPlatformProcess::GetDllHandle(*filePath);

But even with the PublicDelayLoadDLLs I am still getting this error. And since the DllHandle is in my cpp file and will be called in the ModuleStartup method I don’t think that this would solve my compile error. Am I right with this?