title: How to get children from element?
body: <p>I have my element in <code>IUIAutomationElement elem</code> , and now i want to get its children,</p>
  <p>for that, i have tried following this code</p>
  <pre><code>IUIAutomationElement* dummy = NULL;     //creating a dummy
  IUIAutomationElementArray* children_array;   //creating an array 
  elem-&gt;GetCachedChildren(&amp;children_array); 
  children_array-&gt;GetElement(0,&amp;dummy);
  qDebug() &lt;&lt; dummy;
  </code></pre>
  <p>it doesnt work and i get unhandled exceptions. where am i going wrong ?</p>