This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can someone advice for pointers for void objects?

void *MyConfigDetail;

if (x)
{
  ((TType1 *) MyConfigDetail) = DetailCacheBeans;
}
else
{
  ((TType2 *) MyConfigDetail) = DetailailCacheHam;
}

</rpr>

But I am unable to access the "MyConfigDetail" elements as

 MyConfigDetail->Forks = 22;            // for example

Why not?