Showing posts with label [電腦] DirectX. Show all posts
Showing posts with label [電腦] DirectX. Show all posts

Tuesday, September 6, 2011

[DirectX] error C1189

Using Visual Studio 2010:

error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended. c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcore.h


Solution

1)Select your project in your "solution explorer",
2)Open the directory named "External Dependencies" and select the "atlcore.h" place in the the directory named "External Dependencies",
3)Change the value 0x0501 to 0x0502 showed below.


Ref:
http://connect.microsoft.com/VisualStudio/feedback/details/564673/problem-with-win32-winnt

[DirectX] How to link the DirectX SDK to VisualStudio 2010

After you installed the DirectX SDK (Software develop Kit), you need to link it to the Visual Studio.
You can follow the steps showed below to do it:

Solution

After you new a project, right-click the project in the "solution explorer",
than choose "Properties"


Than follow the steps below and set the value as the path of "Include" directory in your DirectX SDK installed path.


Than follow the steps below and set the value as the path of "Lib" directory in your DirectX SDK installed path.

Monday, September 5, 2011

[DirectX] Can't install DirectX SKD

This setup executable has not been packed with files and settings.

When I downloaded the "DXSDK_Jun10.exe" to install, I get the error message and can't install it.

solution
My solution is that downloading the another version of DirectX (such as "DXSDK_Feb10.exe") to install.