title: Load resource as byte array programmaticaly in C++
body: <p>Here the same question for C#: <a href="https://stackoverflow.com/questions/9487726/load-resource-as-byte-array-programmaticaly">load resource as byte array programmaticaly</a></p>
  
  <p>So I've got a resource (just binary file - user data, dosen't really matter). I need to get a pointer to byte array representing this resource, how to do this ? Resource located in <em>Resource Files</em> of vs2010 (win32 console project). I think i need to use <code>FindResource</code>, <code>LoadResource</code> and <code>LockResource</code> function of winapi.</p>