Heres the error I get:
1>DX11 Ch 4.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _main
fatal error LNK1120: 1 unresolved externals
Heres the Code:
int main()
{
UINT createDeviceFlags = 0;
#if defined(DEBUG) || defined(_DEBUG)
createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG;
#endif
HRESULT hr;
D3D_FEATURE_LEVEL Feature_Levels;
ID3D11Device* Device;
ID3D11DeviceContext* Immidiate_Device_Context;
hr = D3D11CreateDevice(0,
D3D_DRIVER_TYPE_REFERENCE, // Using reference, device does not support dx11
0,
createDeviceFlags,
0, 0,
D3D11_SDK_VERSION,
&Device,
&Feature_Levels,
&Immidiate_Device_Context);
if(FAILED(hr))
{
MessageBox(0,L"D3D11CreateDevice Failed.",0,0);
return false;
}
if(Feature_Levels != D3D_FEATURE_LEVEL_11_0)
{
MessageBox(0, L"Direct 3D Feature 11 Not Supported", 0,0);
return false;
}
return 0;
}

New Topic/Question
Reply


MultiQuote


|