_variant_t class?

how can I set a _variant_t class to integer variable?
like this:
int i;
i = variantClass;
but this give me an error?
Can any body help me?!
Who is Participating?
danelroismanConnect With a Mentor Commented:
_variant_t V;

V.iVal = 5;
int i = V.iVal;


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.