문제

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