Results 1 to 5 of 5
  1. #1
    ypmagic's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    88
    Reputation
    10
    Thanks
    5
    My Mood
    Buzzed

    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?
    Last edited by ypmagic; 06-28-2013 at 06:27 AM.

  2. #2
    Jordyr's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    363
    Reputation
    14
    Thanks
    71
    My Mood
    Aggressive
    Maybe you shouldnt copy and paste codes. That might work?

  3. #3
    ypmagic's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    88
    Reputation
    10
    Thanks
    5
    My Mood
    Buzzed
    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.

  4. #4
    OpKilts's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    The Interwebs
    Posts
    94
    Reputation
    57
    Thanks
    425
    My Mood
    Aggressive
    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>
    ULTIMATE GAY'S LIST
    • Matypatty
    • DisOwned


    Error: Max Thanks Reached


    TASK'S
    1. (Complete)Make Simple Menu For Combat Arms NA
    2. (Complete) Reach 50 Post's
    3. (In Progress)Troll Nerdy Kids
    4. (Complete)Get a job at KFC

  5. The Following User Says Thank You to OpKilts For This Useful Post:

    ypmagic (06-29-2013)

  6. #5
    Genesis's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Terra Australis
    Posts
    4,221
    Reputation
    1391
    Thanks
    2,528
    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

Similar Threads

  1. HELP GameHack detected - Undefined Hacks error
    By alaw.213 in forum Vindictus Help
    Replies: 8
    Last Post: 10-31-2011, 05:33 PM
  2. [Help Request] undefined hacks (0x30000901)
    By Shiroutor in forum Vindictus Help
    Replies: 9
    Last Post: 08-29-2011, 04:50 PM
  3. Undefined hacks
    By damnwebsites in forum Vindictus Discussions
    Replies: 6
    Last Post: 07-14-2011, 12:05 AM
  4. If you divide by zero, is it undefined or infinity.
    By radnomguywfq3 in forum General
    Replies: 60
    Last Post: 04-14-2011, 12:41 PM