質問

I need to assign the object of IWbemClassObject to the Variant or how can i convert this object to variant type.

Thanks.

役に立ちましたか?

解決

IWbemClassObject* p = ...;  // initialized somehow

VARIANT v;
V_VT(&v) = VT_UNKNOWN;
(V_UNKNOWN(&v) = p)->AddRef();
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top