How to use existing static LIB

Hi,

i am new to Unreal Engine, I’ve been working with the unreal engine for 3 weeks now. I want to use existing static LIBs. I have some Header files, some static LIBs and DLLs.

example:
lib1.h
lib1.lib
lib1.dll
lib2.h
lib2.lib
lib2.dll

I created a plugin, in the Visual Studio Project properties i cant link the LIB, there is no option to do that. What do i have to do to link the LIBs? Do i have to use the Windows API and load the DLL at Runtime with the LoadLibrary function?

Can someone please explain to me how I can implement this or give me a link where I can read it

While this post was pending, I managed to get everything up and running.

But I have another question. I am using an external library and everything works now, the DLL load and function calls, but when I change code in my blueprint library I have to restart the editor for that to take effect. How do I reload the plugin while the editor is open?

btw. don’t be happy without packing your project if you don’t look at delayed dll load.

you can use my plugin as reference.

build.cs
Public/FF_RealSense.h
Private/FF_RealSense.cpp

also it has Android dynamic library integration, too.

1 Like

Thank you very much, you have helped me a lot.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.