directxBOB
asked on
Casting : If cast fails else
Is there a simple way to test a cast. For example I have a structure that changes from time to time, and if the cast fails move onto an else statement?
Is this possible or wi.l it always throw an exception? Basically what I get is saying that I cant convert my custom type to a bool. But there should be other ways.
Any ideas?
Is this possible or wi.l it always throw an exception? Basically what I get is saying that I cant convert my custom type to a bool. But there should be other ways.
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER