2007年10月23日 星期二

[C++] fatal error C1189: #error : Need to include strsafe.h after tchar.h

這個錯誤只要在 stdafx.h 中, 加入 #include 即可解決.

ex:

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <assert.h>
#include <tchar.h>

// Direct3D
#include <d3d9.h>

#include <d3dx9.h>
#include <dxerr9.h>

// DirectInput
#define DIRECTINPUT_VERSION 0x0800
#include <Dinput.h>




by Jing

沒有留言:

張貼留言