Template:AVO Sample of trace properties
From AVObjects Knowledge Base
		(Difference between revisions)
		
		
 (→Trace all object's properties)  | 
		|||
| Line 4: | Line 4: | ||
   CComQIPtr<IAVProperties> spProps(spObject);  |    CComQIPtr<IAVProperties> spProps(spObject);  | ||
| − |    //Get list name=value pairs separated   | + |    //Get list name=value pairs separated CR  | 
   //for all properties of object  |    //for all properties of object  | ||
   CComBSTR cbsPropsList;  |    CComBSTR cbsPropsList;  | ||
Revision as of 07:57, 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"Properties for spObject:\n%ls\n", spPropsList);