Click here to Skip to main content
15,913,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Does calling the clear member function on variant clear the vt data member too?

Rather than declaring several variants I wish to use one for several data extraction of query execution result.

I noticed that _variant_t has the clear member function, does function also the vt member data apart from the encapsulated VARIANT?
Posted

1 solution

_variant_t::Clear internally calls the VariantClear[^] API.
VariantClear sets the vt data member to VT_EMPTY which is the value 0.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900