Im trying to draw font in D3D using the font class included with the Direct X 9 SDK but im getting a linker error is thier a lib file i need to get ?
Code:#include <D3DFont.h>
Code:CD3DFont* m_pFont;
m_pFont = new CD3DFont( _T("Arial"), 12, D3DFONT_BOLD );
Code:m_pFont->DrawText( 2, 0, D3DCOLOR_ARGB(255,255,255,0), "This is a test ");
any help in this would be appriceated :confused:Code:------ Build started: Project: DX9, Configuration: Debug Win32 ------
Linking...
main.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char const *,unsigned long)" (?DrawTextA@CD3DFont@@QAEJMMKPBDK@Z) referenced in function "int __cdecl DrawD3DScene(void)" (?DrawD3DScene@@YAHXZ)
main.obj : error LNK2019: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char const *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PBDKK@Z) referenced in function "int __cdecl DrawD3DScene(void)" (?DrawD3DScene@@YAHXZ)
Debug/DX9.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\C++\Dx9\Debug\BuildLog.htm"
DX9 - 3 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
