title: Not able to load Bitmap from resource
body: <p>I'm having trouble to load a bitmap from resource. I have a project that I want to maintain.
  The images are being loaded from files, but I want to load them from resource.</p>
  
  <p>So, the code below is working:</p>
  
  <pre><code>WCHAR path[MAX_PATH] = TEXT("C:\\nananana...");
  pBitmapClose = Bitmap::FromFile(path);
  </code></pre>
  
  <p>But, when I try to use from resource, it is not working. I have tried several parameters as bellow:</p>
  
  <pre><code>pBitmapClose = Bitmap::FromResource(g_hInstance, MAKEINTRESOURCE(IDB_BTN_CLOSE));
  </code></pre>
  
  <p>or</p>
  
  <pre><code>pBitmapClose = Bitmap::FromResource((HINSTANCE) GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BTN_CLOSE)); 
  </code></pre>
  
  <p>Can anyone PLEASE help me?</p>