Fixing C4005 warning

In Windows 7 if following some of the DirectX guides you can see “warning C4005: ‘DXGI_STATUS_OCCLUDED’ : macro redefinition…”
To fix it do the following (full advise here)

  • Open Properties for the project and select the VC++ Directories page.
  • Set these directories as follows:

Include Directories: $(IncludePath);$(DXSDK_DIR)Include
Library Directories:  $(LibraryPath);$(DXSDK_DIR)Lib\x86

  • Click Apply
This entry was posted in DirectX. Bookmark the permalink.