Original Post
//class
class CA{
public:
//variables and func, not so inportant
float x,y,z;
void set(float xx,float yy,float zz){
x=xx;y=yy;z=zz;
};
};
//code
CA list[1000];
void *pA;
pA = &A
//now the question is!
//how do you accses A[x] trough pA?
(CA*)pA[5].set(1,2,3);//?
pA(CA*)[5].set(1,2,3);//?
//if know i can store the size of CA somewhere, and then create
//pA as a char buffer, but then i can only accses the data,not
//the funcs... i also know that i can do:
CA *temp_pA = (CA*)pA
temp_pA[5].set(1,2,3);