Click here to Skip to main content
11,704,315 members (46,448 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ Java DirectX .NET4.5
Hi, I have downloaded a open source game and want to modify it according to my need, It has following code in resource file:
// Main Include Headers.
#include <stdio.h>		// Required header for sprintf() & sprintf_s().

// Direct3D
#include <d3d9.h>
#include <d3dx9.h>
#include <dinput.h>

// The library files for Direct 3D9.
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
#pragma comment (lib, "dxguid.lib")
#pragma comment (lib, "dinput8.lib")
#pragma comment (lib, "dxguid.lib")
// Standard Template Library.
#include <vector>
using std::vector; // Used for random access.
#include <list>
using std::list; // Used for iteration.
#include <string>
using std::string;
#include <map>
using std::map;
using std::pair;
// Macro Include Headers.
#include <assert.h>

// Custom Macros.
#define SAFE_RELEASE(p)	if (p) { p->Release(); p = NULL; }
#ifndef DXERROR
#define DXERROR(a)	{ OutputDebugString(a); return false; }
#ifndef DIERRBOX
#define DIERRBOX(a) { MessageBox(m_hWnd, a, "DirectInput Error", MB_OK | MB_ICONEXCLAMATION); return false; }
// #defines.
#define WINDOW_WIDTH	1024			//	Window Width.
#define WINDOW_HEIGHT	768				//	Window Height.


It seems that I need DIRECTX 9 libs, this is why my code is giving building errors.
Can any one help me giving the links od DirectX9 libs (or sdk) or what ever needed?

Thanks in advance Smile | :)
Posted 18-Feb-13 19:16pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


I think you need the DirectX SDK -[^]

Download the complete DirectX SDK, which contains the DirectX Runtime and all DirectX software required to create DirectX compliant applications.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 740
1 OriginalGriff 520
2 Maciej Los 355
3 Andy Lanng 284
4 CPallini 275
0 OriginalGriff 8,824
1 Sergey Alexandrovich Kryukov 8,247
2 CPallini 5,197
3 Maciej Los 4,726
4 Mika Wendelius 3,606

Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100