Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

FreezeRrR

D3DFont problem

This topic is 5672 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!