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

DrawText with D3D8
Old 05-16-2010, 07:15 AM   #1
Member

GameLover's Avatar

Join Date: Feb 2010
Posts: 68
Reputation: -872
Rep Power: 0
GameLover is infamous around these partsGameLover is infamous around these partsGameLover is infamous around these partsGameLover is infamous around these partsGameLover is infamous around these partsGameLover is infamous around these partsGameLover is infamous around these parts
DrawText with D3D8

How do I draw text using D3D8? I've tried this, but I got errors.
d3dfont8.h

Code:
#include "d3dfont8.h"
Code:
CD3DFont *pFont=NULL;
Code:
pFont->DrawText(150,200,D3DCOLOR_ARGB(255,255,0,0),"Text",0);
Errors:
Code:
Error    1    error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" (?RestoreDeviceObjects@CD3DFont@@QAEJXZ) referenced in function "void __cdecl PostReset(struct IDirect3DDevice8 *)" (?PostReset@@YAXPAUIDirect3DDevice8@@@Z)    Main.obj
Error    2    error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice8 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice8@@@Z) referenced in function "void __cdecl PostReset(struct IDirect3DDevice8 *)" (?PostReset@@YAXPAUIDirect3DDevice8@@@Z)    Main.obj
Error    3    error LNK2019: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PADKK@Z) referenced in function "void __cdecl PostReset(struct IDirect3DDevice8 *)" (?PostReset@@YAXPAUIDirect3DDevice8@@@Z)    Main.obj
Error    4    error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char *,unsigned long)" (?DrawTextA@CD3DFont@@QAEJMMKPADK@Z) referenced in function "unsigned long __stdcall HackThread(void *)" (?HackThread@@YGKPAX@Z)    Main.obj
Error    5    error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" (?DeleteDeviceObjects@CD3DFont@@QAEJXZ) referenced in function "void __cdecl PreReset(struct IDirect3DDevice8 *)" (?PreReset@@YAXPAUIDirect3DDevice8@@@Z)    Main.obj
Error    6    error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" (?InvalidateDeviceObjects@CD3DFont@@QAEJXZ) referenced in function "void __cdecl PreReset(struct IDirect3DDevice8 *)" (?PreReset@@YAXPAUIDirect3DDevice8@@@Z)    Main.obj
Error    7    fatal error LNK1120: 6 unresolved externals
GameLover is offline

Reply With Quote


Old 05-16-2010, 04:17 PM   #2
Donator

ZeaS's Avatar

Join Date: May 2008
Location: Germany
Posts: 250
Reputation: 18729
Rep Power: 239
ZeaS Will always be a legend at UCZeaS Will always be a legend at UCZeaS Will always be a legend at UCZeaS Will always be a legend at UCZeaS Will always be a legend at UCZeaS Will always be a legend at UCZeaS Will always be a legend at UCZeaS Will always be a legend at UCZeaS Will always be a legend at UCZeaS Will always be a legend at UCZeaS Will always be a legend at UC
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (12)
Awarded to members who have donated 10 times or more. Gratuity (1)
Points: 13,606, Level: 15
Points: 13,606, Level: 15 Points: 13,606, Level: 15 Points: 13,606, Level: 15
Activity: 18.8%
Activity: 18.8% Activity: 18.8% Activity: 18.8%
Last Achievements
lol that guy again : >

did you include(add) the d3dfont.cpp ?
__________________


Last edited by disco; 05-16-2010 at 06:44 PM. Reason: moved thread
ZeaS is online now

Reply With Quote

Old 05-16-2010, 07:59 PM   #3
Level 3

fatboy88's Avatar

Join Date: May 2005
Posts: 1,103
Reputation: 38964
Rep Power: 494
fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!
Recognitions:
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 27,267, Level: 24
Points: 27,267, Level: 24 Points: 27,267, Level: 24 Points: 27,267, Level: 24
Activity: 9.9%
Activity: 9.9% Activity: 9.9% Activity: 9.9%
Last Achievements
just use D3DXCreateFontIndirect


font->drawtextA


i dunno doesnt really get any easier
__________________


My greatest fear is a Windows Vista Update! D:

ȜǷ-ɲآɳᶨ4 Hack:http://img42.imageshack.us/img42/473/20090203132330.png

Last edited by fatboy88; 05-16-2010 at 08:03 PM.
fatboy88 is online now

Reply With Quote

Old 05-16-2010, 09:12 PM   #4


Roverturbo's Avatar

Join Date: Feb 2005
Posts: 5,034
Reputation: 92245
Rep Power: 1108
Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!Roverturbo has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (?)
I am GOD? Hmm K. God
Points: 69,884, Level: 38
Points: 69,884, Level: 38 Points: 69,884, Level: 38 Points: 69,884, Level: 38
Activity: 19.5%
Activity: 19.5% Activity: 19.5% Activity: 19.5%
Last Achievements
It errors because you failed to learn even the basics of the C++ programming language. Sorry, but it's the truth about 99% of your posts. Maybe research the error yourself and then come back and tell us what you have tried to fix it, then maybe someone might be inclinded to help you proper.
__________________


I've learned that something constructive comes from every defeat.

Sometimes i say things i shouldn't, and sometimes i say what other people are thinking.

Real programmer's don't document, if it was hard to write, it should be hard to understand.

First learn computer science and all the theory, next develop a programming style, then forget all that and just hack.

Roverturbo is online now

Reply With Quote

Old 05-16-2010, 10:59 PM   #5
Level 3

K@N@VEL's Avatar

Join Date: Sep 2007
Posts: 753
Reputation: 14616
Rep Power: 215
K@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server spaceK@N@VEL 's rep takes up 1 gig of server space
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (1)
I guess i'll be nice and help you out, Unresolved symbol errors usually happen when the compiler can see a function's declaration but not its definition, For example lets say we have:

Code:
void RandomFunction();
The compiler will see that you have declared "RandomFunction" but no body of actual code to help resolve the stub, So to fix it we would show the compiler the body:

Code:
void RandomFunction( void )
{
         // Do some shit in here
}
If you working on something that uses library you may also run into this error if you dont INCLUDE THE LIBRARY properly so let's say we are making directx application and you include "d3d9.h" it can see all the function prototypes but not the functions contents which are stored in "d3d9.lib" so to fix your issue maybe sure to tell the compiler its using a library:

Code:
#pragma comment( lib, "d3d9.lib" )
Will fix unresolved symbols caused by d3d9.h, Hope u learned something.
__________________
K@N@VEL is offline

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
d3d8, drawtext
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 06:14 PM.