Hey, sorry, took a bit of a break on this project, I’m now back to it. I built a x64 version of the DLL and it was able to load the DLL without any problems. However the function call to FPlatformProcess::GetDllExport failed, the reason for this is because the function names in my DLL are mangled and I was passing in the unmangled function name. When I pass the mangled name, I was able to successfully call my function from the DLL.
I have a follow up question, this isn’t specific to UE4 at all, but I hope someone could help me out.
I know I can build the DLL with unmangled names by specifying extern “C”, however in my case this isn’t really an option as my DLL has heavy usage of templates so I can’t compile with that specifier. So my question is, is it “normal” to call FPlatformProcess::GetDllExport with a mangled function name? I know it works, but is this good practice? It seems kinda sketchy because if I change my DLL’s source, the compiler may generate a different mangled name which means I’d have to edit my call to GetDllExport. If this isn’t good practice, what should I do instead?
Reminder: i am noob, all insights are appreciated!