I added a few debug logging to get the actual HRESULT when attempting to call CreateDXGIFactory during initialization. The modules are found perfectly fine, and apparently the function is CreateDXGIFactory is also found correctly.
However, when attempting to call in this block:
IDXGIFactory* factory;
HRESULT result = ((long(__stdcall*)(const IID&, void**))(CreateDXGIFactory))(__uuidof(IDXGIFactory), (void**)&factory);
if (result < 0)
{
::DestroyWindow(window);
::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance);
return Status::IDXGIFactoryFailed;
}
I found it was returning the following error:
DXGI_ERROR_INVALID_CALL 0x887A0001
The application provided invalid parameter data; this must be debugged and fixed before the application is released.
I have done a bit of searching, but for some reason I can't determine the root cause. Any help or tips would be appreciated?
I added a few debug logging to get the actual
HRESULT
when attempting to callCreateDXGIFactory
during initialization. The modules are found perfectly fine, and apparently the function isCreateDXGIFactory
is also found correctly.However, when attempting to call in this block:
I found it was returning the following error:
I have done a bit of searching, but for some reason I can't determine the root cause. Any help or tips would be appreciated?