Original Post
im trying to do this thing with virtual functions and stuff.
where CDog and CCat have base class CAnimal, and private virutal Act() in common:
CCat Cat;
CDog Dog;
CAnimal **Animal = NULL;
Animal = new CAnimal*[2];
Animal[0] = &Dog
Animal[1] = &Cat
Animal[0].Act();//err
Animal[1].Act();//err
when i call .Act(), i get this compiler error:
//error C2228: left of ''.Act'' must have class/struct/union type
How can i call these, or am i doing this entire thing wrongly?