Sign in to follow this  
Amaz1ng

Unresolved external...

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this