SolvedLPD3DXFONT is undefined.

Posts 1–5 of 5 · Page 1 of 1
LPD3DXFONT is undefined.
So, here's my code..

Code:
#pragma once

#include <Windows.h>
#include "d3d9.h"
#include <ctime>
#include <iostream>

#define D3DHOOK_TEXTURES
#define MAX_MENU_ITEMS 5

#define WALLHACK 0 
#define CUSTOM_CROSSHAIR 1 
#define NO_RECOIL 2
#define UNLIM_AMMO 3
#define AUTO_FIRE 4
#define HIDE_MENU 5


/*DEFINITION OF CHAMS*/
/*******************/
/*


/*******************/


class Hacks
{
	int m_stride;

public:
	void Hacks::CreateFont(IDirect3DDevice9 *d3dDevice, std::string choiceFont);
	void Hacks::InitializeMenuItems();
	void Hacks::DrawText(LPCSTR TextToDraw, int x, int y, D3DCOLOR Color);
	void Hacks::DrawMenu(IDirect3DDevice9 *d3dDevice);
	void Hacks::DrawFilledRectangle(int x, int y, int w, int h, D3DCOLOR Color, IDirect3DDevice9 *d3dDevice);
	void Hacks::DrawBorderBox(int x, int y, int w, int h, int thickness, D3DCOLOR Color, IDirect3DDevice9 *d3dDevice);
	void Hacks::KeyboardInput();

	LPDIRECT3DTEXTURE9 texRed;
	LPDIRECT3DTEXTURE9 textGreen;

	LPDIRECT3DTEXTURE9 textBlue;
	LPDIRECT3DTEXTURE9 textWhite;

	D3DVIEWPORT9 viewPort;

	LPD3DXFONT Font;

	struct d3dMenuHack
	{
		bool on;
		std::string name;
	};

	d3dMenuHack hack[MAX_MENU_ITEMS];
};
I bolded the part where the problem is. I was wondering what was the problem...... I did include the d3d9 header from the June 2010 SDK I installed. Help please?
Maybe you shouldnt copy and paste codes. That might work?
Quote Originally Posted by Jordyr View Post
Maybe you shouldnt copy and paste codes. That might work?
I didn't copy and paste?

---------- Post added at 04:27 AM ---------- Previous post was at 04:24 AM ----------

Never mind, I'll go ask a more helpful community.
Quote Originally Posted by ypmagic View Post
I didn't copy and paste?

---------- Post added at 04:27 AM ---------- Previous post was at 04:24 AM ----------

Never mind, I'll go ask a more helpful community.
Kkkkkk if that is what you wish.

/closed
D3D9 doesn't hold the function of
LPD3DX9FONT9 pFont;
add this to your Includes / STDAFX File

Code:
/*D3DX9 Includes*/
#pragma comment(lib, "d3dx9.lib")
#pragma comment(lib, "d3d9.lib")
#include <d3dx9.h>
#include <d3d9.h>
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us