title: How to use GetExtension in VS 2010
body: <p>I'm beginner in c/c++ and find <a href="https://msdn.microsoft.com/en-us/library/system.io.path.getextension(v=vs.110).aspx" rel="nofollow">this</a> to get the file's suffix and <a href="https://msdn.microsoft.com/en-us/library/system.io.path.getfilenamewithoutextension%28v=vs.110%29.aspx" rel="nofollow">this</a> to get the file's name and <strong>I have to use these methods</strong> but I can't run the examples in these pages</p>
  
  <p>this is my function</p>
  
  <pre><code>void Myfunc(char* filename)
  {   
      cout&lt;&lt;GetExtension(filename);
  }
  </code></pre>
  
  <p>the error is "GetExtension" is undefined</p>
  
  <p>please help me to get my file suffix and name :)</p>
  
  <p>thank you</p>