x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Link a third party DLL (Load time binding) as plugin

How do you link a third party DLL with a .h and .lib file into a UE4 plugin for load time binding?

All tutorials seem to point towards runtime binding with function pointers, although its an option is it possible to use load time binding with DLL for plugin in UE4?

Product Version: UE 4.11
Tags:
more ▼

asked May 28 '16 at 01:56 AM in C++ Programming

avatar image

Commander Shepard
812 62 83 220

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Not solid on the difference between load-time and runtime binding, but I don't have to mess with function pointers when I include:

PublicAdditionalLibraries.Add("path/to/library"); PublicIncludePaths.Add("path/to/header");

in the .Build.cs file for the plugin. Might be what you are looking for.

more ▼

answered May 28 '16 at 02:22 AM

avatar image

Smerom
31 1 2 2

avatar image Commander Shepard May 30 '16 at 05:01 PM

Alright that was very helpful, the library is working but the final problem is the OS starts to look for DLL at standard locations and games binaries folder, where and how should I put the DLL to so that the plugin locates it there instead of reporting missing dll cuz its not in standard locations

avatar image Commander Shepard May 30 '16 at 05:31 PM

alright found that out as well

Anyone looking for the detailed answer about how to use dll with import library in a plugin follow this link

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

By load-time vs run-time do you mean...

Load-Time: You wish to control when a dll is loaded, i.e. your going to make the call to the OS, in order to get the loader, set up the code, and do the extern resolution?

Run-Time: You wish to have all referenced DLLs loaded, and externs resolved, when your plugin is loaded?

If it's the latter then Smerom gave the answer, if it's the former, I can't think of anything that would prevent you from invoking the loader of the OS directly.

Jay

IceWare Inc.

IwSpline

more ▼

answered May 28 '16 at 02:27 AM

avatar image

jayice
1.4k 41 28 56

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question