D3DFont problem
I get errors when trying to make the font
I initialise it :
CD3DFont* m_pFont;
and then I make it :
m_pFont = new CD3DFont( _T("Arial"), 12, D3DFONT_BOLD | D3DFONT_ITALIC );
I am not using it at the moment since I want to make the declaration and stuff work
I get this :
MainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PADKK@Z)
Debug/TroisDUn.exe : fatal error LNK1120: 1 unresolved externals
Hope someone will help me out on this one
I took it off because when it's in the project I get this :
c:\documents and settings\sebdes\desktop\projetsp_1_3\d3dfont.cpp(902) : fatal error C1010: unexpected end of file while looking for precompiled header directive
I havn't modified in any way the file and it works in an other project
[edited by - FreezeRrR on February 6, 2003 6:20:37 PM]
c:\documents and settings\sebdes\desktop\projetsp_1_3\d3dfont.cpp(902) : fatal error C1010: unexpected end of file while looking for precompiled header directive
I havn't modified in any way the file and it works in an other project
[edited by - FreezeRrR on February 6, 2003 6:20:37 PM]
Start with going to "Project" then into "Settings" then the tab "C/C++" then in the drop down list "Precompiled headers" then select "Not using precompiled header" ... should sort that precompiled header stuff out .. hope it helps
Actually, you should always use precompiled headers, unless you are making a very very small project. Precompiled headers greatly reduce compile times and help in organizing your project. Instead of excluding the file or not using precompiled headers, type this in the top of the d3dfont.cpp file:
#include "stdafx.h"
Or whatever your precompiled header file is called. Go here for a great article on using precompiled headers.
#include "stdafx.h"
Or whatever your precompiled header file is called. Go here for a great article on using precompiled headers.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement