Closed Progmasys closed 3 years ago
Found the problem. GetDpiForWindow(_hWnd) is Windows 10 only. Changing WebWindow::GetScreenDpi solved it for now.
unsigned int WebWindow::GetScreenDpi()
{
if (IsWindows10OrGreater)
{
return GetDpiForWindow(_hWnd);
}
else
{
return 0;
}
}
I've been trying to build WebWindow on a x64 Windows 7 machine but every time it fails with:
System.TypeInitializationException: 'The type initializer for 'WebWindows.WebWindow' threw an exception.' DllNotFoundException: Unable to load DLL 'WebWindow.Native' or one of its dependencies. (0x8007007F).
I already tried a lot of things. Reinstaling Visual C++, different versions of WebView2 and Chromium Edge (beta, dev) but nothing worked. And this only happens on Windows 7.
Any ideas on what's causing this issue?