Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Direct3D
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

D3D9 DrawText error... :(
Old 05-07-2010, 06:53 PM   #1
Junior Member

Risky's Avatar

Join Date: Apr 2010
Posts: 54
Reputation: 1159
Rep Power: 34
Risky -- This man endangers the worldRisky -- This man endangers the worldRisky -- This man endangers the worldRisky -- This man endangers the worldRisky -- This man endangers the worldRisky -- This man endangers the worldRisky -- This man endangers the worldRisky -- This man endangers the worldRisky -- This man endangers the world
Points: 1,988, Level: 3
Points: 1,988, Level: 3 Points: 1,988, Level: 3 Points: 1,988, Level: 3
Activity: 13.1%
Activity: 13.1% Activity: 13.1% Activity: 13.1%
Last Achievements
D3D9 DrawText error... :(

hey guys , im trying to get into d3d hooking. I got a box , now i need to get some text going. I tried this.

Globals
Code:
LPD3DXFONT      g_pFont = NULL; //D3D Font
Endscene
Code:
f(g_pFont == NULL) 
		D3DXCreateFont( Device_Interface, 14, 0, FW_NORMAL, 1, 0, DEFAULT_CHARSET,  OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial Black", &g_pFont );
                                                  
	 DrawText(120,15,D3DCOLOR_ARGB(255,255,0,0),"Test");
But i always get a parameter error like


1>.\Main.cpp(174) : error C2660: 'DrawTextA' : function does not take 4 arguments

. any help guys? and today is my birthday ! so helping me would be really nice of you guys :PP
Risky is offline

Reply With Quote


Old 05-07-2010, 07:07 PM   #2
Super l337

Geek4Ever's Avatar

Join Date: Jul 2009
Location: Texas
Posts: 209
Reputation: 5945
Rep Power: 95
Geek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATSGeek4Ever DEFINES UNKNOWNCHEATS
Hangaroo Champion Power Ball Challenge Champion Blocks Champion
Points: 5,155, Level: 7
Points: 5,155, Level: 7 Points: 5,155, Level: 7 Points: 5,155, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
DrawText
Doing it wrong buddy

Code:
void PrintText(LPD3DXFONT Font, long x, long y, D3DCOLOR fontColor, char *text, ...)
{ 
    RECT rct;   
    rct.left     = x - 1;   
    rct.right    = x + 1;   
    rct.top      = y - 1 ;   
    rct.bottom   = y + 1; 

    if(!text) { return; }
    va_list va_alist;
    char logbuf[256] = {0};
    va_start (va_alist, text);
    _vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), text, va_alist);
    va_end (va_alist);
    RECT FontRect = { x, y, x, y };
    Font->DrawText(SptMenu, logbuf, -1, &rct, DT_NOCLIP, fontColor); 
}
PrintText(g_pFont,40,40,D3DCOLOR_XRGB(255, 255, 255),"Its my birthday");
__________________

Last edited by Geek4Ever; 05-07-2010 at 07:10 PM.
Geek4Ever is online now

Reply With Quote

Old 05-07-2010, 08:05 PM   #3
SEGnosis
Guest

Posts: n/a
Quote:
RECT FontRect = { x, y, x, y };
wat is dis

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
d3d9, drawtext, error
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 09:07 AM.