Template:AVO Sample of trace properties
From AVObjects Knowledge Base
(Difference between revisions)
Line 11: | Line 11: | ||
//Trace properties | //Trace properties | ||
− | ATLTRACE2(atlTraceGeneral, 2, L" | + | ATLTRACE2(atlTraceGeneral, 2, L"Qbject's properties:\n%s\n", |
spPropsList); | spPropsList); | ||
</source> | </source> |
Revision as of 08:39, 11 July 2014
Trace all object's properties
//Query IAVProperties interface CComQIPtr<IAVProperties> spProps(spObject); //Get list name=value pairs separated CR //for all properties of object CComBSTR cbsPropsList; HRESULT hr = spProps->PropsGet(L"\n", cbsPropsList); ATLASSERT(hr == S_OK); //Trace properties ATLTRACE2(atlTraceGeneral, 2, L"Qbject's properties:\n%s\n", spPropsList);