2012-08-26 5 views
6

이 내가 새로운 SDK로 업데이트하기 전에에서 내 헤더는 다음과 같습니다Windows 8 SDK의 헤더가 모두 바뀌었고 지금 포함 할 항목을 모르겠습니다.

#pragma once 

#ifndef _EXTERNAL_DEPENDENCIES_H_ 
#define _EXTERNAL_DEPENDENCIES_H_ 

#if defined(DEBUG) || defined(_DEBUG) 
#define _CRTDBG_MAP_ALLOC 
#include <crtdbg.h> 
#endif 

#include <windows.h> 
#include <time.h> 
#include <mmsystem.h> 
#include <cassert> 
#include <ctime> 
#include <algorithm> 
#include <string> 
#include <sstream> 
#include <fstream> 
#include <vector> 
#include <assert.h> 
#include <fcntl.h> 
#include <pdh.h> 
#include <stack> 
#include <map> 
#include <memory> 
#include <random> 
#include <xaudio2.h> 
#include <x3daudio.h> 
#include <xaudio2fx.h> 
#include <ogg\ogg.h> 
#include <ogg\os_types.h> 
#include <vorbis\codec.h> 
#include <vorbis\vorbisenc.h> 
#include <vorbis\vorbisfile.h> 

#include "d3dx11Effect.h" 
#include <d3dx11.h> 
#include <xnamath.h> 
#include <dxerr.h> 
#include <dinput.h> 
#include <d3dcommon.h> 
#include <dxgi.h> 
#include <d3d11.h> 
#include <d3dcompiler.h> 
#include <d3dx10math.h> 
#include <d3dx11async.h> 
#include <D3DX11tex.h> 
#include <gdiplus.h> 

#pragma comment (lib, "gdiplus.lib") 
#pragma comment (lib, "winmm.lib") 
#pragma comment (lib, "dxguid.lib") 
#pragma comment (lib, "d3dx9d.lib") 
#pragma comment (lib, "d3dx10d.lib") 
#pragma comment (lib, "d3d11.lib") 
#pragma comment (lib, "d3dx11.lib")   
#pragma comment (lib, "dxgi.lib") 
#pragma comment (lib, "dxgi.lib") 
#pragma comment (lib, "dxerr.lib") 
#pragma comment (lib, "d3dx10.lib") 
#pragma comment (lib, "wsock32.lib") 
#pragma comment (lib, "dinput8.lib") 
#pragma comment (lib, "dxguid.lib") 
#pragma comment (lib, "pdh.lib") 
#pragma comment (lib, "comctl32.lib") 
#pragma comment (lib, "xaudio2.lib") 
#pragma comment (lib, "x3daudio.lib") 
#pragma comment (lib, "libogg.lib") 
#pragma comment (lib, "libogg_static.lib") 
#pragma comment (lib, "libvorbis.lib") 
#pragma comment (lib, "libvorbisfile.lib") 

#pragma warning (disable : 4482) 

#endif 
그 중이어야 절반은 새로운 SDK에서 누락

...

핵심 다이렉트 헤더의 대부분은 이름이 변경

, 내가 가진 그 중 절반은 Dxerr.h와 d3dx11async.h, 심지어 d3dx10math.h/xnamath.h와 같이 그냥 사라져 버렸습니다 (오, DirectXMath.h를 포함하면 XMFLOAT3이 정의되지 않았다고 말합니다). 지금해야 할 일이 무엇인지 모르겠다. 2010 년 6 월 DirectX SDK에서 Windows SDK 8.0으로 마이그레이션하는 방법은 어디에서라도 말할 수 있습니까?

+0

(본 사이트를 포함하고 전체 게시물보기 나던 대신 <xnamath.h>을 포함 할 수

using namespace DirectX; 

을 IT IS :) 대부분의 핵심 DirectX 헤더는 이름이 바뀌었지만 그 중 절반은 Dxerr.h와 d3dx11async.h, 심지어

+1

이 댓글을 삭제하고 다음에 텍스트에 넣고있는 것을 보시기 바랍니다. 당신은'<'마크를 사용했고 브라우저는 다음 텍스트를 HTML 태그로 해석했습니다. – quetzalcoatl

답변

0

grep 지금 누락 된 헤더에서 사용하는 기능의 새 헤더를 통해. 또는 함수에 대한 MSDN 설명서에서 필요한 헤더 파일을 알려줄 수 있습니다.

7

DirectXMath.h의 XMFLOAT3은 DirectX 네임 스페이스에 있습니다. 하여 헤더 파일에 다음을 추가

시도 : 또한, 그래서 여기에 직접 도청 <DirectXMath.h> 또는 <D3DX10Math.h>