Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_variant_t help

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
I've got a function that returns a list of things into a _variant_t type. How do I access this stuff after the function has put it into the variable, and WHERE do I get the info from. I'm a little confused with the _variant_t type. Since the function is returning a list of stuff, should I have an array of _variant_t type? Any and all help is greatly appreciated.....

BTW, I have already looked on the MSDN site for this stuff...I can't seem to find anything that really explains what I need.

Niky Williams
NTSMarketing
 
Niky,

The ATL class _variant_t encapsulates the VARIANT structure from the COM SDK. There are about a bazillion articles and samples on MSDN that discuss the multiple uses of the structure. It containes a large union that requires some understanding to use.

Good luck
-pete
 
_variant_t is just a thin wrapper for VARIANT.The only differnece is simplifiing creation and destruction of encapsualted VARIANT types.So it is nothing but just VARIANT.If you know VARIANT you _variant_t
 
Okay, I see now....somewhat. My problem is that I don't understand a whole lot about VARIANT. I just need to do a lot of research on that topic. I knew that _variant_t was a wrapper, but I didn't know exactly how it fit in. Thank you so much for your info!

Niky Williams
NTS Marketing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top