0

This is the error:

Error   LNK2019 unresolved external symbol _FW1CreateFactory@8 referenced in function "long __stdcall DrawingPresent(struct IDXGISwapChain *,unsigned int,unsigned int)" (?DrawingPresent@@YGJPAUIDXGISwapChain@@II@Z)  Lead    C:\Users\Sick\Desktop\Sources\lead\Lead\entry_point.obj 1   

this is the drawingpresent HRESULT

WINAPI DrawingPresent(IDXGISwapChain* pSwapChain, UINT SyncInterval, UINT Flags)

this is how I use it

IDXGISwapChain* SwapChain = nullptr;
    VirtualTable = *reinterpret_cast<uintptr_t*>(SwapChain);
    *reinterpret_cast<void**>(VirtualTable + 32) = &DrawingPresent;

I fail to understand what the problem could be FW1CreateFactory does exist.

0 Answers0