Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -


i new windows programming. here goes code

objiwbemlocator = new qaxobject("wbemscripting.swbemlocator"); objwmiservice = objiwbemlocator->querysubobject("connectserver(qstring&,qstring&)",qstring("."),qstring("root\\cimv2"));  qaxobject* returnlist = objwmiservice->querysubobject("execquery(qstring&)", qstring("select * %1").arg(domain)); qaxobject* result = returnlist->querysubobject("itemindex(int)", 0); 

i getting error on runtime

qt activex wmi qaxbase::dynamiccallhelper: itemindex(int): no such property in 

but itemindex method exists

msdn says

the itemindex method not work collections not contain swbemobjects, such swbemmethodset, swbemnamedvalueset, swbemprivilegeset, swbempropertyset, , swbemqualifierset.

what selecting ? have tried iterating on collection ? plus need minimum windows vista itemindex method. hope helps


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Enable autocomplete or intellisense in Atom editor for PHP -