title: C++: Access embedded resource from dll
body: <p>I have a c++ dll project, in which, I have embedded some raw data through "resource.rc" file.</p>
  
  <pre><code>IDR_TEMPLATE1           RCDATA                "areaTemplate.bin"
  </code></pre>
  
  <p>Now I want to access the data of "areaTemplate.bin" file from the dll. How can I read the contents of "areaTemplate.bin" in a byte array?</p>