BruceWho
2006-10-12 05:34:45 UTC
my application needs to use a COM component, one of the method uses a
VARIANT* data type like this:
void func(VARIANT* longVar);
and I handle VARIANT variables by _variant_t:
_variant_t var(100);
and now I need to pass var to func, and it doesnot work like this:
func(&var);
so could anybody figure me out how to convert this _variant_t to
VARIANT*?
VARIANT* data type like this:
void func(VARIANT* longVar);
and I handle VARIANT variables by _variant_t:
_variant_t var(100);
and now I need to pass var to func, and it doesnot work like this:
func(&var);
so could anybody figure me out how to convert this _variant_t to
VARIANT*?