I must have missed your original post, for it would have been a really easy answer. In the call to D3DXMatrixAffineTransformation, use the address-of operator by changing Quat to @Quat. This changes a TD3DXQuaternion to a PD3DXQuaternion.