Jump to content
  • Advertisement
Sign in to follow this  
Amaz1ng

Unresolved external...

This topic is 2541 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


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;
}


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

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

I think I have all the includes set correctly.



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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!