Argh! What am I doing wrong here?
Here's the error I get: It occurs on line 47:
1>..\..\shell\shell\skeleton.cpp(47): error C2660: 'Player::Initialize' : function does not take 4 arguments
Here's skeleton.cpp:
Here's playerclass.cpp:
And, finally, playerclass.h:
Please help! This is driving me crazy!
Check for multiple files of playerclass.h or playerclass.cpp. Your project file might point to the wrong file, if you have two of them. Or you might have edited one file and not saved it and for this post you copied and pasted the code from the unsaved file, while your compiler reads the saved file. Or you might have edited and saved the .h file, but your IDE doesn't rebuild that part automatically. Rebuild everything.
In one instance you are including the playerclass.h from c:\ and in the other from another folder, whereever you are compiling from and have set the include path to.
#include"c:\playerclass.h" #include"playerclass.h"
Unless you're compiling from the c:\ drive root folder, then you are including different files. This could be causing your problems. If you're referring to an old version of playerclass.h. And you would probably get a link error too, about undefined references, if you got that far.