From the error message, it sounds as though MCLoad is a class, and Load is a method of that class. If you want to call Load, you have two choices:
1) Instantiate an object of type MCLoad, and call Load on that object
2) If the Load method doesn't in any way access the state of the MCLoad object, you can make it a static method (i.e. a class method), and call it the way you're already calling it.
thx MikeyBoy i made it static and it helped a bit but i still have probs :(
now
1 2
char b;
MCLoad::Load(b, "bg.bmp");
it gives me error: invalid conversion from 'char' to 'SDL_Surface*' [-fpermissive]
and if i delete char b;
it says error: 'b' was not declared in this scope and i declared it in func itself as Load(SDL_Surface* name, as you see
what should i do??
i have fixed it with your help. thx all. and u know what, i m gonna quit keep working on it and instead i m gonna read articles and watch lessons about pointers, sdl library and some basics over again. it seems i have some gaps.
and if u wonder fixed version staticbool Load(SDL_Surface* name, std::string file);