   Function pointers and classes
  Hello everyone...  lol if your not looking happy now dont bother looking below....Ive got a camera class which has a public function pointer:   void (*Camera_State)();and i have a player class that has a public function as shown below:   void Player::Set_Camera_Top(){oCamera.SetCamera(//values for camera);}Right...now if you havent guessed it by now ive got 2 class instances, as shown:   Player *oPlayer;Camera *oCamera;oPlayer = new Player;oCamera = new Camera;So now i want to make the function pointer within camera point to the function "Set_Camera_Top" within Player... at the moment ive got:   void Camera::Set_Camera_State(){Camera_State = oPlayer->Set_Camera_Top;}but it doesnt like it and says:Camera.cpp(254) : error C2440: ''='' : cannot convert from ''void (__thiscall Player::*)(void)'' to ''void (__cdecl *)(void)''which im guessing means it cant convert our classes function to a function pointer... so is there anyway around this or am i gonna have to work around it?Thanks for your help 
  Remember that in a class they are called method not a function. Methods dont work the same way as functions so you cant use them for function pointers (well you can if you make the method static but thats for another day). Have a quick search for method pointers and you should be fine. Another work around is to just pass a pointer to the player into the camera and call via that or have the player contain the camera and call that way ;  oh..thanks..loli just knew them as classes...ok i will go look up method pointers... ;  Yep all working now  thanks.... 