Sign in to follow this  
Amaz1ng

Unresolved external...

Recommended Posts

Amaz1ng    131
[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
CRYP7IK    1327
[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

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