title: Using LoadImage for resources win32
body: <p>I have a program that Im using OpenFileName and GetOpenFileName to get a file and using Windows Imaging Component to convert it to a DIBSection then using BitBlt to draw it to the window.</p>
  
  <p>I want to do the same with my resource files so I use LoadImage, but when I try to convert it using Windows Imaging Component I get an access violation and it says error reading characters of string.</p>
  
  <p>This is how I use LoadImage</p>
  
  <pre><code>LoadImage(NULL,MAKEINTRESOURCE(IDB_BACKGROUND),0,0,0,LR_LOADFROMFILE);
  </code></pre>
  
  <p>Whats my problem here?</p>