title: expression must have pointer type error
body: <p>I looked at all the other answers about this on here but it didn't seem to apply to mine.</p>
  
  <pre><code>MY_STRUCT_LIST*  tempList = NULL ;
  size_t cnt = my_Session-&gt;my_ListIndex.size();
  int i = 0;
  
  for(i=0; i &lt; (int)cnt ; i++)
  {
     tempList = my_Session-&gt;my_ListIndex[i];
     if(tempList-&gt;lListIndex == treeItem)
     {      
      my_Session-&gt;my_ListIndex-&gt;push_back(i);
      break;
     }
   }
  </code></pre>
  
  <p>Here: </p>
  
  <p><code>my_Session</code> is a pointer
  <code>my_ListIndex</code> is a Vector pointer of <code>MY_STRUCT_LIST</code> type.
  <code>lListIndex</code> and <code>treeItem</code> are the same type.</p>
  
  <pre><code> Error: the second my_Session has 583 "expression must have pointer type"
  </code></pre>
  
  <p>But it is a pointer!</p>