Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Animation in D3D


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 Arkanoid   Members   -  Reputation: 109

Like
0Likes
Like

Posted 27 April 2012 - 10:57 AM

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?

Sponsor:

#2 L. Spiro   Crossbones+   -  Reputation: 5172

Like
0Likes
Like

Posted 27 April 2012 - 12:13 PM

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
It is amazing how often people try to be unique, and yet they are always trying to make others be like them. - L. Spiro 2011
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums

#3 Arkanoid   Members   -  Reputation: 109

Like
0Likes
Like

Posted 28 April 2012 - 05:35 AM

#include "Utility.h"
#include "Utility.cpp"
i have this error:
error LNK2005: "public: static char * __cdecl CUtility::DuplicateCharString
for all utility functions.

#4 L. Spiro   Crossbones+   -  Reputation: 5172

Like
0Likes
Like

Posted 28 April 2012 - 07:33 AM

That is because you #include’d Utility.cpp instead of adding it to your project, via drag-and-drop for example.


L. Spiro
It is amazing how often people try to be unique, and yet they are always trying to make others be like them. - L. Spiro 2011
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums

#5 Arkanoid   Members   -  Reputation: 109

Like
0Likes
Like

Posted 29 April 2012 - 12:01 AM

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.

#6 Arkanoid   Members   -  Reputation: 109

Like
0Likes
Like

Posted 29 April 2012 - 04:46 AM

i understand where was the problem...when i add it it to the project i must delete
#include "Utility.cpp"
thx for help))




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS