I have tried having the WebView2Loader.dll in the same directory as my executable. And I have also instead to tried to download the evergreen build from https://developer.microsoft.com/en-us/microsoft-edge/webview2/ and install it into my system (and have LoadLibrary find the DLL there instead)
In both cases the following happens. In my 32bit executable builds everything loads and works fine. In my 64bit executable my code:
Windows.LoadLibrary(PChar('WebView2Loader.dll'))
Gives this error:
%1 is not a valid Win32 application
I am on latest Windows 10 64bit
Any ideas what I can try...?