title: C2296: '-' : illegal, left operand has type 'unsigned int
body: <p>When I try to extract a substring from another, this error occurs. I think that it's coming from this operation <code>strApp.length - 2</code> that I'm trying to make, but I cannot find how to fix it.</p>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>C2296: '-' : illegal, left operand has type 'unsigned int (__thiscall
    std::basic_string,std::allocator>::*
    )(void) throw()</p>
  </blockquote>
  
  <p>Related code:</p>
  
  <pre><code>this-&gt;appName = strApp.substr(strApp.substr(0, strApp.length - 2).find_last_of("\\") + 1, strApp.length);
  </code></pre>
  
  <p>Any brilliant suggestion, please ?</p>