Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将 IWbemClassObject 的对象分配给 Variant,或者如何将此对象转换为变体类型。
谢谢。
IWbemClassObject* p = ...; // initialized somehow VARIANT v; V_VT(&v) = VT_UNKNOWN; (V_UNKNOWN(&v) = p)->AddRef();