• Advertisement
Sign in to follow this  

Unresolved external...

This topic is 2417 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[code]
int D3DApp::countAdapters()
{
IDXGIFactory * fac;
IDXGIAdapter * adapter;
int i = 0;
HRESULT h = S_OK;

h = CreateDXGIFactory(__uuidof(IDXGIFactory), (void**)&fac);

if(h != S_OK) return -1;

while(fac->EnumAdapters(i, &adapter) != DXGI_ERROR_NOT_FOUND)
{
++i;
}

adapter->Release();
return i;
}
[/code]

I'm getting unresolved external on CreateFactory. Any ideas?

I think I have all the includes set correctly.

Share this post


Link to post
Share on other sites
Advertisement
[quote name='Amaz1ng' timestamp='1307548588' post='4820956']
I'm getting unresolved external on CreateFactory. Any ideas?

I think I have all the includes set correctly.
[/quote]


Sounds like you don't actually have DXGI.lib in your library dependencies.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement