DllNotFoundException: Unable to load DLL 'HDFql'

Hello,

so I am trying to get my WebXR project working but when I Buiild and run my project this Exception is getting thrown in the browser:
DllNotFoundException: Unable to load DLL ‘HDFql’. Tried the load the following dynamic libraries:
Rethrow as TypeInitializationException: The type initializer for ‘AS.HDFql.HDFqlPINVOKE.SWIGExceptionHelper’ threw an exception
I looked up and tried many things like Dependencywalker to see what dependencs are missing or putting the HDFql.dll file in my System32 folder and using DllImport. I also searched up to cross-compile the dll. But these are all not working, could it be because this is a third party dll and WebGL does not recognize it or that WebGL is AOT (ahead-of-time)?

If the DLL is compiled AOT (ie C/C++) then no, you cannot use it. See: Include C++ DLL in WebGL Build

C# DLLs work in WebGL from what I know.

In this thread he wrote that:
The proper way is to take the original C++ source and directly “cross-compile” that to WebAssembly.
Is that possible?

Little late perhaps but I hope you discovered De Panther’s WebXR exporter