title: (Bitmap)LoadImage() returns NULL and GetLastError() returns 0
body: <p>I'm trying to draw a bitmap file on window. So I used (HBITMAP)LoadImage() and it returns NULL.
  I used GetLastError to see the problem but it returns 0 too.
  I'm working on goorm ide(windows application).</p>
  
  <pre><code>    HBITMAP hBitmap = NULL;
      hBitmap = (HBITMAP)LoadImageW( NULL, L"C:\\Users\\Asd\\Downloads\\image.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
  
      if(hBitmap == NULL){
          DWORD errorCode = GetLastError();
          if(errorCode != 0){
              LPSTR messageBuffer = nullptr;
              FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
                  NULL,
                  errorCode,
                  0,
                  (LPTSTR)&amp;messageBuffer,
                  0,
                  NULL);
                  MessageBox(NULL, messageBuffer, "hBitmap is NULL!" , MB_OK);
                  }else{
                      MessageBox(NULL, "hBitmap is null but errorCode is 0", "???" , MB_OK);
                  }
              }
  </code></pre>
  
  <p>If I change the "image.bmp" to "asdf.bmp" in the code, It says "there is no file." so I'm sure that It found file but seems not working right. when I print Width and Height of bitmap, It shows strange number(like 12312321, -3453453). I can't find what is problem.</p>
  
  <p>I tried this too:
  (from <a href="https://support.microsoft.com/en-us/help/158898/howto-how-to-use-loadimage-to-read-a-bmp-file" rel="nofollow noreferrer">https://support.microsoft.com/en-us/help/158898/howto-how-to-use-loadimage-to-read-a-bmp-file</a>)</p>
  
  <pre><code>hBitmap = (HBITMAP)LoadImage( NULL, "image.bmp", IMAGE_BITMAP, 0, 0,
                 LR_CREATEDIBSECTION | LR_DEFAULTSIZE | LR_LOADFROMFILE );
  </code></pre>