Sign in to follow this  
Arkanoid

Animation in D3D

Recommended Posts

HI, i started to learn animation from this sample:
[url="http://www.toymaker.info/Games/html/load_x_hierarchy.html"]http://www.toymaker.info/Games/html/load_x_hierarchy.html[/url]

There is no problem to understand how animation works, but i have very BIG problem with using that code in my projects...

There is a structure CGraphics that contains everything, i just try to use animation without that class. So about the problem:
project contains all files in two parts .h and .cpp in the sample - everything works good, but if i add this files in my project:
[CODE]#include "XfileEntity.h"
#include "Utility.h"[/CODE]

i have errors like this :
: error LNK2019: public: static void __cdecl CUtility::DebugString

why? How shoud i add that files to project correctly?

Share this post


Link to post
Share on other sites
[i]Their[/i] project compiles and runs out-of-the box.
If you are trying to say that you are making your own new project and copying their files over, you need to add the .CPP files to your project, not just the .H files.


L. Spiro

Share this post


Link to post
Share on other sites
[CODE]
#include "Utility.h"
#include "Utility.cpp"
[/CODE]
i have this error:
[CODE]error LNK2005: "public: static char * __cdecl CUtility::DuplicateCharString[/CODE] for all utility functions.

Share this post


Link to post
Share on other sites
I added it in the list where is main.cpp.. And if i open classes window i can see that functions in the list. And i can see there CUtility class.

Share this post


Link to post
Share on other sites
i understand where was the problem...when i add it it to the project i must delete
[CODE]#include "Utility.cpp"[/CODE]
thx for help))

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this