Hi guys,
I’m sorry to bring up this topic after such a long time, but I want to share the solution to my problem, which I’ve seen many of you have.
Indeed, the method previously described by sameek4 and S_Q_R works. However, I was also getting a NULL return from GetDllExport. After several days of struggling with this issue, I decided to check the export of my DLL using “Dependency Walker” and “DllExportViewer.” The problem turned out to be that the methods were not visible outside the DLL. This is because Robert Giesecke’s UnmanagedExports seems to not work correctly in several cases.
To solve the export problem, I used DllExport, which you can find at the following link:
link
Follow the instructions and, after building the DLL, I checked everything again with Dependency Walker, and the methods were indeed exposed. Now, the C# DLL works correctly within Unreal Engine.
I want to provide an answer in this thread because it helped me a lot to read a C# DLL within UE (in my case 5.4). I hope this answer can help you too.