   SDL Class Errors
  I am having problems with one particular function, the function of the class is below, along with the included files for this particular cpp file, and the 4 related errors, that because I am just learning the code, I dont really know that well... If you need to see the other clases, let me know and I''ll post them, but I dont want to take up huge amounts of space with code if I dont need it.#include"Sprite.h"#include"SpriteBase.h"#includeint Sprite :: InitSprite( SpriteBase *base, SDL_Surface *screen ){SpriteBase = base;if ( SpriteBase->built ){if ( SpriteBase->numFrames > 1 ) Animate = true;// This starts the hero facing forward, if you run into// Another room or want them facing a different direction// Change the Element in Anim[0] to whatever you wantBackReplacement = SDL_DisplayFormat( SpriteBase->Anim[0].AnimImage );}screen = screen;return 0;}That is the function that the breakpoint in my Microsoft C++ compiler is pointing to, mainly the first line, it doesn''t seem to like the arguments I am passing to that particular function... here are the errors more specficially.error C2065: ''base'' : undeclared identifiererror C2597: illegal reference to data member ''Sprite::SpriteBase'' in a static member functionerror C2275: ''SDL_Surface'' : illegal use of this type as an expressionerror C2448: '''' : function-style initializer appears to be a function definitionI hope that it is something as silly as a semi colon or spelling error, but I can see it, so any help would be appriciated.  
  uhh i can''t see your .h files, but i''m assuming the problem isSpriteBase = base;  you don''t seem to quite understand the difference between variable types and variables...  ;  Nevermind[edited by - AdolphousC on April 1, 2003 11:39:28 PM];  Thanks for the help, although you could be a little less harsh, but I figured out my errors, so you did indeed help. I appriciate it.  