Quote:
Originally Posted by byteit101
like (Gyro)MyPointer->GetValue();?
or ((Gyro)MyPointer)->GetValue();?
or ((Gyro)(*MyPointer))->GetValue();?
|
None of the above.
Your
pointer is the wrong type. So it's the
pointer you have to cast to the correct type of
pointer:
((Gyro *)MyPointer)->GetValue()
But you don't want to do this

Do as suggested in the prior posts as it is much cleaner and less error-prone.