Animation in D3D

Started by
4 comments, last by Arkanoid 11 years, 11 months ago
HI, i started to learn animation from this sample:
http://www.toymaker.info/Games/html/load_x_hierarchy.html

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:
#include "XfileEntity.h"
#include "Utility.h"


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

why? How shoud i add that files to project correctly?
Advertisement
Their 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

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid


#include "Utility.h"
#include "Utility.cpp"

i have this error:
error LNK2005: "public: static char * __cdecl CUtility::DuplicateCharString for all utility functions.
That is because you #include’d Utility.cpp instead of adding it to your project, via drag-and-drop for example.


L. Spiro

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid

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.
i understand where was the problem...when i add it it to the project i must delete
#include "Utility.cpp"
thx for help))

This topic is closed to new replies.

Advertisement