title: How to set icon for c++ application window and icon for task bar?
body: <p>How to set these icons for application?<br>
  I am using visual studio.<br>
  <a href="https://i.stack.imgur.com/kGgTQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kGgTQ.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/ehOJV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ehOJV.png" alt="enter image description here"></a><br>
  The icon on application window is empty.<br>
  I have already added a project.rc file to project and have added icon resource into it<br>
  And it shows the correct icon on the task bar when I dock it to the task bar.<br>
  <a href="https://i.stack.imgur.com/V8pFQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V8pFQ.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/HokBs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HokBs.png" alt="enter image description here"></a></p>