GetProperty and VARIANT
COM
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I need read text value from property which is in registry defined like VARIAT. So I use following code: COleDIspatchDriver m_Driver; ... VARIANT res; VariantInit(&res); m_Driver.GetProperty(Id_PropText, VT_VARIANT, (void*)&res); ... And that returns res.vt=0x2008, res.bstrVal=0x0018f040. But no text even in the data source is correct text value of this property. Have you any idea where can be problem? Thanks Alex.